Beispiel #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);
        }
Beispiel #2
0
        public override PersonalComputer BuildPersonalComputer()
        {
            // TODO: Implement builder pattern
            var ram = new Ram(2);
            var colorfulVideoCardStrategy = new ColorfulDrawingStrategy();
            var videoCard   = new VideoCard(true, colorfulVideoCardStrategy);
            var motherboard = new Motherboard(ram, videoCard);
            var cpu         = new Cpu32(2, motherboard);
            var storage     = new HardDrive(500);

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

            return(pc);
        }
Beispiel #3
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);
        }
Beispiel #4
0
        public override Laptop BuildLaptopComputer()
        {
            var ram = new Ram(DefaultLaptopRamAmount);
            var colorfulVideoCardStrategy = new ColorfulDrawingStrategy();
            var videoCard   = new VideoCard(true, colorfulVideoCardStrategy);
            var motherboard = new Motherboard(ram, videoCard);
            var cpu         = new Cpu32(DefaultLaptopCpuCores, motherboard);
            var storage     = new HardDrive(DefaultLaptopHardDriveSize);
            var battery     = new LaptopBattery();

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

            return(laptop);
        }
Beispiel #5
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);
        }