public ILaptop GetLaptop(
     ICpu cpu,
     IEnumerable<IHardDrive> hardDrives,
     IMotherboard motherboard,
     ILaptopBattery battery)
 {
     return new Laptop(cpu, hardDrives, motherboard, battery);
 }
Exemplo n.º 2
0
 public Laptop(
     ICpu cpu,
     IEnumerable<IHardDrive> hardDrives,
     IMotherboard motherboard,
     ILaptopBattery battery)
     : base(cpu, hardDrives, motherboard)
 {
     this.Battery = battery;
 }
Exemplo n.º 3
0
 internal Laptop(
     Cpu cpu,
     Ram ram,
     IEnumerable <HardDrive> hardDrives,
     VideoCard videoCard,
     ILaptopBattery battery)
     : base(cpu, ram, hardDrives, videoCard)
 {
     this.battery = battery;
 }
Exemplo n.º 4
0
 internal Laptop(
     Cpu cpu,
     Ram ram,
     IEnumerable<HardDrive> hardDrives,
     VideoCard videoCard,
     ILaptopBattery battery)
     : base(cpu, ram, hardDrives, videoCard)
 {
     this.battery = battery;
 }
Exemplo n.º 5
0
 internal Laptop(
     CPUs.Cpu cpu,
     IRam ram,
     IEnumerable<HardDriver> hardDrives,
     VideoCard videoCard,
     ILaptopBattery laptopBattery)
     : base(cpu, ram, hardDrives, videoCard)
 {
     this.battery = laptopBattery;
 }
Exemplo n.º 6
0
 public Laptop(IMotherboard motherboard, ILaptopBattery battery)
 {
     this.motherboard = motherboard;
     this.battery     = battery;
 }
Exemplo n.º 7
0
 public Laptop(ICpu cpu, IMotherboard motherboard, HardDriver hardDrive, ILaptopBattery battery)
     : base(cpu, motherboard)
 {
     this.Battery = battery;
     this.hardDrive = hardDrive;
 }
Exemplo n.º 8
0
 public Laptop(ICpu cpu, IRam ram, IEnumerable <IHardDriver> driver, IVideoCard videoCard, ILaptopBattery battery) :
     base(cpu, ram, driver, videoCard)
 {
     this.battery = battery;
 }
Exemplo n.º 9
0
 public Laptop(ICpu cpu, IMotherboard motherboard, HardDriver hardDrive, ILaptopBattery battery)
     : base(cpu, motherboard)
 {
     this.Battery   = battery;
     this.hardDrive = hardDrive;
 }
Exemplo n.º 10
0
 public void CreateParts()
 {
     // I need motherboard only for creation of the laptop, not for the test, so I don't need real motherboard - using Mock one
     motherboard = Mock.Create <IExtendedMotherBoard>();
     battery     = new LaptopBattery();
 }