aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Adapters/VisaPayment.cs')
-rw-r--r--Adapters/VisaPayment.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/Adapters/VisaPayment.cs b/Adapters/VisaPayment.cs
new file mode 100644
index 0000000..8042956
--- /dev/null
+++ b/Adapters/VisaPayment.cs
@@ -0,0 +1,13 @@
+using System;
+using KukaPizza.Models;
+
+namespace KukaPizza.Adapters
+{
+ public class VisaPayment : IPayment
+ {
+ public void Pay(double price)
+ {
+ Console.WriteLine($"\nPaid {price} with Visa card.");
+ }
+ }
+} \ No newline at end of file