diff --git a/RefactoringToDesignPatterns/StrategyPatternPractice/Task/src/main/kotlin/jetbrains/refactoring/course/patterns/Main.kt b/RefactoringToDesignPatterns/StrategyPatternPractice/Task/src/main/kotlin/jetbrains/refactoring/course/patterns/Main.kt index 7fd879b..ec19b0f 100644 --- a/RefactoringToDesignPatterns/StrategyPatternPractice/Task/src/main/kotlin/jetbrains/refactoring/course/patterns/Main.kt +++ b/RefactoringToDesignPatterns/StrategyPatternPractice/Task/src/main/kotlin/jetbrains/refactoring/course/patterns/Main.kt @@ -6,11 +6,11 @@ import jetbrains.refactoring.course.patterns.strategy.CreditCardPayment import jetbrains.refactoring.course.patterns.strategy.PayPalPayment fun main() { - val creditCardPaymentProcessor = PaymentProcessor(CreditCardPayment()) - val paypalPaymentProcessor = PaymentProcessor(PayPalPayment()) - val bitcoinPaymentProcessor = PaymentProcessor(BitcoinPayment()) + val creditCardPayment = PaymentProcessor(CreditCardPayment()) + val paypalPayment = PaymentProcessor(PayPalPayment()) + val bitcoinPayment = PaymentProcessor(BitcoinPayment()) - creditCardPaymentProcessor.processOrderPayment(100.0) - paypalPaymentProcessor.processOrderPayment(50.0) - bitcoinPaymentProcessor.processOrderPayment(200.0) + creditCardPayment.processOrderPayment(100.0) + paypalPayment.processOrderPayment(50.0) + bitcoinPayment.processOrderPayment(200.0) }