internal Computer(ComputerType type, Cpu cpu, Ram ram, IEnumerable <HardDrive> hardDrives, VideoCard videoCard, LaptopBatteryReal battery)
 {
     this.Cpu        = cpu;
     this.Ram        = ram;
     this.HardDrives = hardDrives;
     this.VideoCard  = videoCard;
     if (type !=
         ComputerType.LAPTOP &&
         type
         !=
         ComputerType.PC)
     {
         this.VideoCard.IsMonochrome = true;
     }
     this.battery = battery;
 }
 internal Computer(ComputerType type, Cpu cpu, Ram ram, IEnumerable<HardDrive> hardDrives, VideoCard videoCard, LaptopBatteryReal battery)
 {
     this.Cpu = cpu;
     this.Ram = ram;
     this.HardDrives = hardDrives;
     this.VideoCard = videoCard;
     if (type !=
         ComputerType.LAPTOP
         && type
         !=
         ComputerType.PC)
     {
         this.VideoCard.IsMonochrome = true;
     }
     this.battery = battery;
 }
 public void TestMethod1()
 {
     var laptopBattery = new LaptopBatteryReal();
     laptopBattery.Charge(60);
     Assert.AreEqual(100, laptopBattery.CurrentChargePercentage);
 }