public Coffee MakeCoffee() { var beans = _beanTank.GetBeans(); var powder = _grinder.Grind(beans); var water = _waterTank.TapWater(); var cupOfCoffee = _coffeeMaker.Make(powder, water); return(cupOfCoffee); }
static void CoffeeTest() { //MrCoffee lifesaver = new MrCoffee(); CoffeeMaker lifesaver = new CoffeeMaker(); lifesaver.AddGrains(5.0); lifesaver.AddWater(12); lifesaver.InsertFilter(); lifesaver.Make(); QuickMath qm = new QuickMath(5, 6); int x = new QuickMath(6, 7).Add(); x = QuickMaths.add(5, 6); //int k = lifesaver.AddGrains(4000000); }