Exemplo n.º 1
0
        public override IChargeable CreateLaptop()
        {
            IRam ram = new Ram(InitialLaptopRam);
            VideoCardBase videoCard = new ColorfulVideoCard();
            ICpu cpu = new Cpu(InitialLaptopCores, InitialLaptopCpuBits, ram, videoCard, new Cpu64BitsSquareNumberFinder());
            IEnumerable<HardDrive> hardDrives = new[]
                    {
                        new HardDrive(InitialLaptopHardDriveSpace, false, 0)
                    };
            var battery = new ComputerBuildingSystem.LaptopBattery();

            return new Laptop(cpu, ram, hardDrives, videoCard, battery);
        }
Exemplo n.º 2
0
        public override IChargeable CreateLaptop()
        {
            IRam                    ram        = new Ram(InitialLaptopRam);
            VideoCardBase           videoCard  = new ColorfulVideoCard();
            ICpu                    cpu        = new Cpu(InitialLaptopCores, InitialLaptopCpuBits, ram, videoCard, new Cpu64BitsSquareNumberFinder());
            IEnumerable <HardDrive> hardDrives = new[]
            {
                new HardDrive(InitialLaptopHardDriveSpace, false, 0)
            };
            var battery = new ComputerBuildingSystem.LaptopBattery();

            return(new Laptop(cpu, ram, hardDrives, videoCard, battery));
        }