Exemple #1
0
        public override Computer MakePC()
        {
            var ramMemory = new RAMMemory(2);
            var videoCard = new ColorVideoCard();
            var cpu = new Cpu(2, 32);
            var hdd = new[] { new HardDriver(500, false, 0) };
            var pc = new Computer("PC", cpu, ramMemory, hdd, videoCard, null);

            return pc;
        }
Exemple #2
0
        public override IPersonalComputer MakePersonalComputer()
        {
            var ram = new Ram(2);
            var videoCard = new ColorVideoCard();
            var hardDrive = new[] { new HardDrive(500, false, 0) };
            IMotherboard motherboard = new Motherboard(ram, videoCard);
            Cpu cpu = new Cpu32Bit(2, motherboard, this.Random);

            var result = new PersonalComputer(motherboard, cpu, ram, hardDrive, videoCard);
            return result;
        }
Exemple #3
0
        public override Computer MakeLaptop()
        {
            var videoCard = new ColorVideoCard();
            var ramMemory = new RAMMemory(4);
            var cpu = new Cpu(2, 64);
            var hdd = new[] { new HardDriver(500, false, 0) };
            var battery = new LaptopBattery();
            var laptop = new Computer("LAPTOP", cpu, ramMemory, hdd, videoCard, new LaptopBattery());

            return laptop;
        }
Exemple #4
0
 public override ILaptopComputer MakeLaptopComputer()
 {
     IVideoCard videoCard = new ColorVideoCard();
     Ram ram = new Ram(4);
     IMotherboard motherboard = new Motherboard(ram, videoCard);
     Cpu cpu = new Cpu64Bit(2, motherboard, this.Random);
     var hardDrive = new[]
     {
         new HardDrive(500, false, 0)
     };
     Battery.LaptopBattery battery = new Battery.LaptopBattery();
     ILaptopComputer laptop = new LaptopComputer(motherboard, cpu, ram, hardDrive, videoCard, battery);
     return laptop;
 }