Skip to content

Commit

Permalink
fix: fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
GirZ0n committed Nov 6, 2023
1 parent 982e5ab commit 2aceb19
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 2aceb19

Please sign in to comment.