Exemplo n.º 1
0
 public Cpu(int numberOfCores, int numberOfBits, Motherboard motherboard, IRandomNumberProvider randomNumberProvider)
 {
     this.NumberOfCores = numberOfCores;
     this.NumberOfBits = numberOfBits;
     this.Motherboard = motherboard;
     this.randomNumberProvider = randomNumberProvider;
 }
Exemplo n.º 2
0
 public Cpu64Bits(int numberOfCores, Motherboard motherboard, IRandomNumberProvider randomNumberProvider)
     : base(numberOfCores, BitsCount, motherboard, randomNumberProvider)
 {
 }
Exemplo n.º 3
0
 // Dependency inversion
 public Cpu64Bits(int numberOfCores, Motherboard motherboard)
     : this(numberOfCores, motherboard, new RandomNumberProvider())
 {
 }
Exemplo n.º 4
0
 public Cpu128Bits(int numberOfCores, Motherboard motherboard, IRandomNumberProvider randomNumberProvider)
     : base(numberOfCores, BitsCount, motherboard, randomNumberProvider)
 {
 }
Exemplo n.º 5
0
 // Dependency inversion
 public Cpu128Bits(int numberOfCores, Motherboard motherboard)
     : this(numberOfCores, motherboard, new RandomNumberProvider())
 {
 }