Esempio n. 1
0
 public Refrigerator()
 {
     _storageFactory       = new StorageFactory();
     _notificationFactory  = new NotificationFactory();
     _notificationManager  = new NotificationManager(_notificationFactory.GetNotifier("refrigerator"));
     _configurationManager = new ConfigurationManager(_storageFactory.GetStorage("InMemory"));
     _vegetableTracker     = new VegetableTracker(_vegetableTray, _configurationManager);
 }
Esempio n. 2
0
 public Refrigerator()
 {
     listVegetableQuantity = new List <VegetableQuantity>();
     vegetableTracker      = new VegetableTracker(listVegetableQuantity);
     vegetableManager      = new VegetableManager(listVegetableQuantity, vegetableTracker);
     configurationManager  = new ConfigurationManager(listVegetableQuantity, vegetableManager);
     notifier = new Notifier();
 }
 public VegetableManager(List <VegetableQuantity> listVegetableQuantity, VegetableTracker vegetableTracker)
 {
     this.listVegetableQuantity = listVegetableQuantity;
     this.vegetableTracker      = vegetableTracker;
 }
Esempio n. 4
0
 public PlaceOrder(VegetableTray vegetableTray, ConfigurationManager configurationManager)
 {
     this._configurationManager = configurationManager;
     _vegetableTracker          = new VegetableTracker(vegetableTray, configurationManager);
 }