public bool ConfirmPayment(IHotDrink drink) { //Payment With Coins //Payment payment = new CoinPayment(); //// Payment With Mobile Pay Payment payment = new MobilePayAdapter(); payment.PrintPaymentDetails(drink); string paymentId = Console.ReadLine().ToLower(); return(payment.Pay(paymentId)); }
public DrinkDecorator(IHotDrink decoratedDrink) { this.decoratedDrink = decoratedDrink; }
public MilkyDrinkDecorator(IHotDrink decoratedDrink) : base(decoratedDrink) { }
private void AddMilk(IHotDrink decoratedDrink) { Console.Clear(); Console.WriteLine("Added milk to your drink."); Thread.Sleep(2000); }