示例#1
0
        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);
        }
示例#2
0
        public override Server BuildServerComputer()
        {
            var ram            = new Ram(32);
            var monochromStrat = new MonochromeDrawingStrategy();
            var videoCard      = new VideoCard(false, monochromStrat);
            var motherboard    = new Motherboard(ram, videoCard);
            var cpu            = new Cpu32(4, motherboard);
            var raidDrives     = new List <StorageProvider>()
            {
                new HardDrive(1000),
                new HardDrive(1000)
            };

            var raid = new Raid(1000, raidDrives);

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

            return(server);
        }
示例#3
0
        public override Server BuildServerComputer()
        {
            var ram          = new Ram(8);
            var drawingStrat = new MonochromeDrawingStrategy();
            var videoCard    = new VideoCard(true, drawingStrat);
            var motherboard  = new Motherboard(ram, videoCard);
            var cpu          = new Cpu128(2, motherboard);
            var raidDrives   = new List <StorageProvider>()
            {
                new HardDrive(500),
                new HardDrive(500)
            };

            var storage = new Raid(500, raidDrives);

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

            return(server);
        }
示例#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);
        }