/// <summary> /// Create new motherboard /// </summary> /// <param name="cpu">ICPU processor of any kind</param> /// <param name="ram">IRam ram memmory</param> /// <param name="hardDrive">IHardDrive storage</param> /// <param name="videoCard">IVideoCard videocard</param> public MotherBoard(ICPU cpu, IRam ram, IHardDrive hardDrive, IVideoCard videoCard) { this.Cpu = cpu; this.Ram = ram; this.HardDrive = hardDrive; this.Videocard = videoCard; }
internal PC(ICPU cpu, IRam ram, IHardDrive hardDrives, IVideoCard videoCard) { this.Cpu = cpu; this.Ram = ram; this.HardDrives = hardDrives; this.VideoCard = videoCard; }
public MotherBoard(IRamMemory ram, ICpu cpu, IHardDrive hardDrive, IVideoCard videoCard) { this.ram = ram; this.cpu = cpu; this.hardDrive = hardDrive; this.videoCard = videoCard; }
internal Server(ICPU cpu, IRam ram, IHardDrive hardDrives) { this.Cpu = cpu; this.Ram = ram; this.HardDrives = hardDrives; this.VideoCard = new VideoCardMonochrome(); }
internal Laptop(ICPU cpu, IRam ram, IHardDrive hardDrives, IVideoCard videoCard, IBattery battery) { this.Cpu = cpu; this.Ram = ram; this.HardDrives = hardDrives; this.VideoCard = videoCard; this.Battery = battery; }
public void Assemble() { IProcessor processor = _computer.GetProcessor(); IHardDrive hardDrive = _computer.GetHardDrive(); IMonitor monitor = _computer.GetMonitor(); processor.Process(); hardDrive.Store(); monitor.Display(); }
internal Computer( Cpu cpu, IRam ram, IEnumerable<HardDrive> hardDrives, IHardDrive hardDrive, LaptopBattery battery, IVideocard videocard) { this.cpu = cpu; this.ram = ram; this.hardDrives = hardDrives; this.hardDrive = hardDrive; this.videocard = videocard; this.battery = battery; }
public PcMotherBoard(IRamMemory ram, ICpu cpu, IHardDrive hardDrive, IVideoCard videoCard) : base(ram, cpu, hardDrive, videoCard) { }
public Computer2(IHardDrive hardDrive = null) => HardDrive = hardDrive;
public PersonalComputer(MotherBoard motherBoard, IHardDrive hardDrives) : base(motherBoard, hardDrives) { }
public IComputer CreateComputer(ICPU cpu, IRam ram, IHardDrive hardDrives, IVideoCard videoCard, IBattery battery) { IComputer laptop = new Laptop(cpu, ram, hardDrives, videoCard, battery); return(laptop); }
public LaptopMotherBoard(IRamMemory ram, ICpu cpu, IHardDrive hardDrive, IVideoCard videoCard, IBattery battery) : base(ram, cpu, hardDrive, videoCard) { this.Battery = battery; }
public Computer(MotherBoard motherBoard, IHardDrive hardDrives) { this.MotherBoard = motherBoard; this.HardDrives = hardDrives; }
public IComputer CreateComputer(ICPU cpu, IRam ram, IHardDrive hardDrives) { IComputer server = new Server(cpu, ram, hardDrives); return(server); }
public CheapComputer() { _processor = new SlowProcessor(); _hardDrive = new SlowHardDrive(); _monitor = new DullMonitor(); }
public Laptop(MotherBoard motherBoard, IHardDrive hardDrives, Battery battery) : base(motherBoard, hardDrives) { this.Battery = battery; }
public ExpensiveComputer() { _processor = new FastProcessor(); _hardDrive = new FastHardDrive(); _monitor = new BrightMonitor(); }
public IComputer CreateComputer(ICPU cpu, IRam ram, IHardDrive hardDrives, IVideoCard videoCard) { IComputer pc = new PC(cpu, ram, hardDrives, videoCard); return(pc); }