Esempio n. 1
0
 public IPc GetPc()
 {
     var ram = new Ram(4);
     var videoCard = new MonochromeVideoCard(this.drawer);
     var motherboard = new Motherboard(videoCard, ram);
     return this.factory.GetPc(
             new Cpu64(2),
             new[] { new HardDrive(500, 0) },
             motherboard);
 }
Esempio n. 2
0
 public IServer GetServer()
 {
     var ram = new Ram(32);
     var videoCard = new MonochromeVideoCard(this.drawer);
     var motherboard = new Motherboard(videoCard, ram);
     return this.factory.GetServer(
         new Cpu32(4),
         new List<IHardDrive>
             {
                 new Raid(0, 2, new List<IHardDrive> { new HardDrive(1000, 0), new HardDrive(1000, 0) })
             },
         motherboard);
 }