public override PersonalComputer BuildPersonalComputer()
        {
            var ram          = new Ram(4);
            var drawingStrat = new MonochromeDrawingStrategy();
            var videoCard    = new VideoCard(false, drawingStrat);
            var motherboard  = new Motherboard(ram, videoCard);
            var cpu          = new Cpu64(2, motherboard);
            var storage      = new HardDrive(2000);

            var pc = new PersonalComputer(cpu, storage, motherboard);

            return(pc);
        }
Exemple #2
0
        public override Laptop BuildLaptopComputer()
        {
            var ram = new Ram(4);
            var colorfulVideoCardStrategy = new ColorfulDrawingStrategy();
            var videoCard   = new VideoCard(true, colorfulVideoCardStrategy);
            var motherboard = new Motherboard(ram, videoCard);
            var cpu         = new Cpu64(2, motherboard);
            var storage     = new HardDrive(500);
            var battery     = new LaptopBattery();

            var laptop = new Laptop(cpu, storage, motherboard, battery);

            return(laptop);
        }
Exemple #3
0
        public override PersonalComputer BuildPersonalComputer()
        {
            // TODO: Implement builder pattern
            var ram = new Ram(DefaultPcRamAmount);
            var colorfulVideoCardStrategy = new ColorfulDrawingStrategy();
            var videoCard   = new VideoCard(true, colorfulVideoCardStrategy);
            var motherboard = new Motherboard(ram, videoCard);
            var cpu         = new Cpu64(DefaultPcCpuCores, motherboard);
            var storage     = new HardDrive(DefaultPcHardDriveSize);

            var pc = new PersonalComputer(cpu, storage, motherboard);

            return(pc);
        }
Exemple #4
0
        public override Server BuildServerComputer()
        {
            var ram            = new Ram(DefaultServerRamAmount);
            var monochromStrat = new MonochromeDrawingStrategy();
            var videoCard      = new VideoCard(false, monochromStrat);
            var motherboard    = new Motherboard(ram, videoCard);
            var cpu            = new Cpu64(DefaultServerCpuCores, motherboard);
            var raidDrives     = new List <StorageProvider>()
            {
                new HardDrive(DefaultServerHardDriveSize),
                new HardDrive(DefaultServerHardDriveSize)
            };

            var raid = new Raid(DefaultServerHardDriveSize, raidDrives);

            var server = new Server(cpu, raid, motherboard);

            return(server);
        }