Ejemplo n.º 1
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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
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);
        }