Exemple #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);
 }
Exemple #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;
 }
Exemple #3
0
 public ServerComputer(IMotherboard motherboard, Cpu cpu, Ram ram, IEnumerable<HardDrive> hardDrives, IVideoCard videoCard)
     : base(ComputerType.SERVER, motherboard, cpu, ram, hardDrives, videoCard)
     {
     }
Exemple #4
0
 public Server(Cpu cpu, RAM ram, IEnumerable<HardDrive> hardDrives)
     : base(cpu, ram, hardDrives)
 {
     this.VideoCard.IsMonochrome = true;
 }
Exemple #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;
 }
Exemple #6
0
 public Laptop(Cpu cpu, RAM ram, IEnumerable<HardDrive> hardDrives, LaptopBattery battery)
     : base(cpu, ram, hardDrives)
 {
     this.Battery = battery;
     this.VideoCard.IsMonochrome = false;
 }
 public PersonalComputer(IMotherboard motherboard, Cpu cpu, Ram ram, IEnumerable<HardDrive> hardDrives, IVideoCard videoCard)
     : base(ComputerType.PC, motherboard, cpu, ram, hardDrives, videoCard)
 {
 }
Exemple #8
0
 public PC(Cpu cpu, RAM ram, IEnumerable<HardDrive> hardDrives)
     : base(cpu, ram, hardDrives)
 {
     this.VideoCard.IsMonochrome = false;
 }