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); }
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; }
public ServerComputer(IMotherboard motherboard, Cpu cpu, Ram ram, IEnumerable<HardDrive> hardDrives, IVideoCard videoCard) : base(ComputerType.SERVER, motherboard, cpu, ram, hardDrives, videoCard) { }
public Server(Cpu cpu, RAM ram, IEnumerable<HardDrive> hardDrives) : base(cpu, ram, hardDrives) { this.VideoCard.IsMonochrome = true; }
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; }
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) { }
public PC(Cpu cpu, RAM ram, IEnumerable<HardDrive> hardDrives) : base(cpu, ram, hardDrives) { this.VideoCard.IsMonochrome = false; }