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();
 }
示例#4
0
        // Fields

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