static void Main(string[] args)
        {
            var coffeeMakerApi             = new CoffeeMakerApi();
            var m4HotWaterProvider         = new M4HotWaterProvider(coffeeMakerApi);
            var m4WarmCoffeeContainer      = new M4WarmCoffeeContainer(coffeeMakerApi);
            var m4CoffeeMakerUserInterface = new M4CoffeeMakerUserInterface(coffeeMakerApi);

            m4CoffeeMakerUserInterface.Init(m4HotWaterProvider, m4WarmCoffeeContainer);

            while (true)
            {
                m4CoffeeMakerUserInterface.Poll();
            }
        }
Beispiel #2
0
 public M4ContainmentVessel(CoffeeMakerApi api)
 {
     this.api      = api;
     lastPotStatus = WarmerPlateStatus.PotEmpty;
 }
Beispiel #3
0
 public M4HotWaterSource(CoffeeMakerApi api)
 {
     this.api = api;
 }
Beispiel #4
0
 public M4UserInterface(CoffeeMakerApi api)
 {
     this.api = api;
 }