示例#1
0
 public static void Main(string[] args)
 {
     Console.WriteLine("Press the option for what you want to do");
     Console.WriteLine("1. Brew Coffee\n2. Remove pot");
     int            userOption    = Int32.Parse(Console.ReadLine());
     CoffeeMakerAPI coffemakerAPI = new CoffeeMakerAPI();
 }
示例#2
0
 public M4UserInterface(CoffeeMakerAPI api)
 {
     this.api = api;
 }
 public M4HotWaterSource(CoffeeMakerAPI api)
 {
     this.api = api;
 }
示例#4
0
 public M4ContainmentVessel(CoffeeMakerAPI api)
 {
     this.api      = api;
     lastPotStatus = WarmerPlateStatus.POT_EMPTY;
 }