Ejemplo n.º 1
0
 /// <summary>
 /// Retrieves the Bench Brewing instance, constructing a new one if the instance
 /// does not yet exist.
 /// </summary>
 /// <returns></returns>
 public static BenchBrewing GetBenchBrewingInstance()
 {
     if (instance == null)
     {
         instance = new BenchBrewing();
     }
     return(instance);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Standard Constructor for the Facade BrewersBenchSystem.
 /// </summary>
 private BrewersBenchSystem()
 {
     benchStock   = BenchStock.GetBenchStockInstance();
     benchBrewing = BenchBrewing.GetBenchBrewingInstance();
     // need to init benchBrewing as Singleton
 }