Esempio 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;
 }
Esempio n. 2
0
 public Cpu64Bits(int numberOfCores, Motherboard motherboard, IRandomNumberProvider randomNumberProvider)
     : base(numberOfCores, BitsCount, motherboard, randomNumberProvider)
 {
 }
Esempio n. 3
0
 // Dependency inversion
 public Cpu64Bits(int numberOfCores, Motherboard motherboard)
     : this(numberOfCores, motherboard, new RandomNumberProvider())
 {
 }
Esempio n. 4
0
 public Cpu128Bits(int numberOfCores, Motherboard motherboard, IRandomNumberProvider randomNumberProvider)
     : base(numberOfCores, BitsCount, motherboard, randomNumberProvider)
 {
 }
Esempio n. 5
0
 // Dependency inversion
 public Cpu128Bits(int numberOfCores, Motherboard motherboard)
     : this(numberOfCores, motherboard, new RandomNumberProvider())
 {
 }