diff options
Diffstat (limited to 'Adapters/MastercardPaymentAdapter.cs')
-rw-r--r-- | Adapters/MastercardPaymentAdapter.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Adapters/MastercardPaymentAdapter.cs b/Adapters/MastercardPaymentAdapter.cs new file mode 100644 index 0000000..8908315 --- /dev/null +++ b/Adapters/MastercardPaymentAdapter.cs @@ -0,0 +1,13 @@ +using KukaPizza.Models; + +namespace KukaPizza.Adapters +{ + public class MasterCardPaymentAdapter : IPayment + { + private MasterCardPayment _mastercardPayment = new MasterCardPayment(); + public void Pay(double price) + { + _mastercardPayment.PayWithMastercard(price); + } + } +}
\ No newline at end of file |