Esempio n. 1
0
        public void NotEnoughCoinsState(IProduct product)
        {
            DisplayMessage.Push(Tags.Price);
            DisplayAmount.Push($"{product.Cost:C}");

            StartState();
        }
Esempio n. 2
0
        public void MadePurchaseState(IProduct product)
        {
            ProductReturn.Deposit(product);
            DisplayMessage.Push("THANK YOU");
            MakeChange(product.Cost);

            StartState();
        }
Esempio n. 3
0
 public void StartState()
 {
     DisplayMessage.Push(
         CoinInventory.TotalValue() < new decimal(0.50)
             ? Tags.ExactChange
             : Tags.InsertCoin);
     DisplayAmount.Push($"{TotalDeposit:C}");
 }