public PersonalComputer CreatePersonalComputer()
        {
            var ram       = new Ram(8);
            var videoCard = new ColofulVideoCard();
            var pc        = new PersonalComputer(new Cpu64(4, ram, videoCard), ram, new[] { new SingleHardDrive(1000) }, videoCard);

            return(pc);
        }
        public Laptop CreteLaptop()
        {
            var ram       = new Ram(8);
            var videoCard = new ColofulVideoCard();
            var laptop    = new Laptop(new Cpu32(4, ram, videoCard), ram, new[] { new SingleHardDrive(1000) }, videoCard, new LaptopBattery());

            return(laptop);
        }
Esempio n. 3
0
        public Laptop CreteLaptop()
        {
            var card   = new ColofulVideoCard();
            var ram    = new Ram(4);
            var laptop = new Laptop(new Cpu64(2, ram, card), ram, new[] { new SingleHardDrive(500) }, card, new LaptopBattery());

            return(laptop);
        }