示例#1
0
 public IPc GetPc()
 {
     var ram = new Ram(2);
     var videoCard = new ColorfulVideoCard(this.drawer);
     var motherboard = new Motherboard(videoCard, ram);
     return this.factory.GetPc(
             new Cpu32(2),
             new[] { new HardDrive(500, 0) },
             motherboard);
 }
示例#2
0
 public ILaptop GetLaptop()
 {
     var videoCard = new ColorfulVideoCard(this.drawer);
     var ram = new Ram(4);
     var motherboard = new Motherboard(videoCard, ram);
     return this.factory.GetLaptop(
         new Cpu64(2),
         new[] { new HardDrive(500, 0) },
         motherboard,
         new LaptopBattery());
 }