public Fridge(string name, Coldstore coldstore, Freezer freezer) : base(name) { this.Coldstore = coldstore; this.Freezer = freezer; }
public FridgeFabricatorInfo(Coldstore coldstore, Freezer freezer) { Coldstore = coldstore; Freezer = freezer; }
// Fields // Constructors public Fridge() { Coldstore = new Coldstore(); Freezer = new Freezer(); }
public FridgeInfo(Coldstore coldstore, Freezer freezer) { Coldstore = coldstore; Freezer = freezer; }
public void CloseFreezer() { Freezer.Close(); }
public void OpenFreezer() { Freezer.Open(); }
public override void TurnOff() { base.TurnOff(); Coldstore.TurnOff(); Freezer.TurnOff(); }
public virtual IFreezer CreateFreezer() { IFreezer device = new Freezer(FreezerModes.freezing, -24, -18, -12, new Temperature(-18, -24, -12), new Mode()); device.DisableFrifge(""); return device; }