Пример #1
0
            static void Main(string[] args)
            {
                CoffeeSort arabica = new CoffeeSort(SortsOfCoffee.Arabica, 2);
                CoffeeSort robusta = new CoffeeSort(SortsOfCoffee.Robusta, 5);

                CoffeeMachine coffeeMaker = new CoffeeMachine(arabica, robusta);
                User          coffeeLover = new User(5);

                Program.Run(coffeeMaker, coffeeLover);
            }
Пример #2
0
 public uint GiveMoney(CoffeeSort sort)
 {
     UserMoney = UserMoney - sort.sortPrice;
     return(sort.sortPrice);
 }
Пример #3
0
 private static void Run(CoffeeMachine coffeeMachine, User user)
 {
     CoffeeSort selectedSortOfCoffee = Program.SelectionCoffee(coffeeMachine, user);
 }