Exemple #1
0
        static void Main(string[] args)
        {
            SodaMachine sodaMachine = new SodaMachine(5, 8, 10, 20, 10, 20, 50);
            Person      buyer       = new Person(0, 0, 0, 30, 30, 30, 30);
            Cafe        ward4       = new Cafe(buyer, sodaMachine);

            ward4.CreateInteraction();
            Console.ReadLine();
        }
Exemple #2
0
 public Cafe(Person buyer, SodaMachine sodaMachine)
 {
     this.buyer       = buyer;
     this.sodaMachine = sodaMachine;
     UI = new UserInterface(sodaMachine);
 }
 public UserInterface(SodaMachine sodaMachine)
 {
     this.sodaMachine = sodaMachine;
 }