public void AddFridge(string name, string fabricator)
        {
            if (!fridgeInfo.ContainsKey(fabricator))
            {
                return;
            }
            FridgeInfo fi     = fridgeInfo[fabricator];
            Fridge     fridge = new Fridge(name, fi.Coldstore, fi.Freezer);

            AddDevice(fridge);
        }
 private void InitFridgeInfo()
 {
     fridgeInfo["Samsung"] = new FridgeInfo(new Coldstore(254, new Lamp(15)), new Freezer(92));
     fridgeInfo["Indesit"] = new FridgeInfo(new Coldstore(233, new Lamp(15)), new Freezer(85));
     fridgeInfo["Atlant"]  = new FridgeInfo(new Coldstore(202, new Lamp(15)), new Freezer(70));
 }
 private void InitFridgeInfo()
 {
     fridgeInfo["Samsung"] = new FridgeInfo(new Coldstore(254, new Lamp(15)), new Freezer(92));
     fridgeInfo["Indesit"] = new FridgeInfo(new Coldstore(233, new Lamp(15)), new Freezer(85));
     fridgeInfo["Atlant"] = new FridgeInfo(new Coldstore(202, new Lamp(15)), new Freezer(70));
 }