Esempio n. 1
0
        public void SquareNumber()
        {
            // Arrange
            Ram        ram       = new Ram(400);
            byte       cores     = 4;
            IVideoCard videoCard = new ColorfullVideoCard();

            ICpu cpu = new Cpu32(cores, ram, videoCard);

            cpu.SquareNumber();
        }
Esempio n. 2
0
        public Pc CreatePc()
        {
            Pc pc;

            var factory   = new DellFactory();
            var ram       = new Ram(8);
            var videoCard = new ColorfullVideoCard();

            pc = new Pc(new Cpu64(4, ram, videoCard), ram, new[] { new HardDriver(1000) }, videoCard);

            return(pc);
        }
Esempio n. 3
0
        public Laptop CreateLaptop()
        {
            Laptop laptop;
            var    ram2       = new Ram(8);
            var    videoCard1 = new ColorfullVideoCard();

            laptop = new Laptop(
                new Cpu32(2, ram2, videoCard1),
                ram2,
                new[] { new HardDriver(1000) },
                videoCard1,
                new LaptopBattery());

            return(laptop);
        }
Esempio n. 4
0
        public Pc CreatePc()
        {
            Pc pc;

            var ram       = new Ram(2);
            var videoCard = new ColorfullVideoCard();

            pc = new Pc(
                new Cpu32(2, ram, videoCard),
                ram,
                new[] { new HardDriver(500) },
                videoCard);

            return(pc);
        }
Esempio n. 5
0
        public Laptop CreateLaptop()
        {
            Laptop laptop;

            var card = new ColorfullVideoCard();

            var ram1 = new Ram(4);

            laptop = new Laptop(
                new Cpu64(2, ram1, card),
                ram1,
                new[] { new HardDriver(500) },
                card,
                new LaptopBattery());

            return(laptop);
        }