Exemplo n.º 1
0
 public Computer(Cpu cpu, RAM ram, IEnumerable<HardDrive> hardDrives)
 {
     this.Cpu = cpu;
     this.Ram = ram;
     this.HardDrives = hardDrives;
     this.VideoCard = new VideoCard();
     this.Motherboard = new Motherboard(this.Ram, this.VideoCard);
 }
Exemplo n.º 2
0
 public Computer(ComputerType type, IMotherboard motherboard, Cpu cpu, Ram ram, IEnumerable<HardDrive> hardDrives, IVideoCard videoCard)
 {
     // TODO: validate
     this.Cpu = cpu;
     this.Ram = ram;
     this.HardDrives = hardDrives;
     this.VideoCard = videoCard;
     this.Motherboard = motherboard;
 }
Exemplo n.º 3
0
 public ServerComputer(IMotherboard motherboard, Cpu cpu, Ram ram, IEnumerable<HardDrive> hardDrives, IVideoCard videoCard)
     : base(ComputerType.SERVER, motherboard, cpu, ram, hardDrives, videoCard)
     {
     }
Exemplo n.º 4
0
 public Server(Cpu cpu, RAM ram, IEnumerable<HardDrive> hardDrives)
     : base(cpu, ram, hardDrives)
 {
     this.VideoCard.IsMonochrome = true;
 }
Exemplo n.º 5
0
 public LaptopComputer(IMotherboard motherboard, Cpu cpu, Ram ram, IEnumerable<HardDrive> hardDrives, IVideoCard videoCard, LaptopBattery battery)
     : base(ComputerType.LAPTOP, motherboard, cpu, ram, hardDrives, videoCard)
 {
     this.battery = battery;
 }
Exemplo n.º 6
0
 public Laptop(Cpu cpu, RAM ram, IEnumerable<HardDrive> hardDrives, LaptopBattery battery)
     : base(cpu, ram, hardDrives)
 {
     this.Battery = battery;
     this.VideoCard.IsMonochrome = false;
 }
Exemplo n.º 7
0
 public PersonalComputer(IMotherboard motherboard, Cpu cpu, Ram ram, IEnumerable<HardDrive> hardDrives, IVideoCard videoCard)
     : base(ComputerType.PC, motherboard, cpu, ram, hardDrives, videoCard)
 {
 }
Exemplo n.º 8
0
 public PC(Cpu cpu, RAM ram, IEnumerable<HardDrive> hardDrives)
     : base(cpu, ram, hardDrives)
 {
     this.VideoCard.IsMonochrome = false;
 }