/// <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;
 }
Example #2
0
 internal PC(ICPU cpu, IRam ram, IHardDrive hardDrives, IVideoCard videoCard)
 {
     this.Cpu        = cpu;
     this.Ram        = ram;
     this.HardDrives = hardDrives;
     this.VideoCard  = videoCard;
 }
Example #3
0
 public MotherBoard(IRamMemory ram, ICpu cpu, IHardDrive hardDrive, IVideoCard videoCard)
 {
     this.ram = ram;
     this.cpu = cpu;
     this.hardDrive = hardDrive;
     this.videoCard = videoCard;
 }
Example #4
0
 internal Server(ICPU cpu, IRam ram, IHardDrive hardDrives)
 {
     this.Cpu        = cpu;
     this.Ram        = ram;
     this.HardDrives = hardDrives;
     this.VideoCard  = new VideoCardMonochrome();
 }
Example #5
0
 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;
 }
Example #6
0
        public void Assemble()
        {
            IProcessor processor = _computer.GetProcessor();
            IHardDrive hardDrive = _computer.GetHardDrive();
            IMonitor   monitor   = _computer.GetMonitor();

            processor.Process();
            hardDrive.Store();
            monitor.Display();
        }
Example #7
0
 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;
 }
Example #8
0
 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);
        }
Example #15
0
 public CheapComputer()
 {
     _processor = new SlowProcessor();
     _hardDrive = new SlowHardDrive();
     _monitor   = new DullMonitor();
 }
Example #16
0
 public Laptop(MotherBoard motherBoard, IHardDrive hardDrives, Battery battery)
     : base(motherBoard, hardDrives)
 {
     this.Battery = battery;
 }
Example #17
0
 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);
        }