public void Setup()
 {
     _mockEvenCalculator = new Mock <IEvenCalculator>();
     _helper             = new PrimeNumberDeterminator(_mockEvenCalculator.Object);
 }
Example #2
0
 public PrimeDeterminatorTests()
 {
     this.primeNumberDeterminator = new PrimeNumberDeterminator();
 }
 public HomeController(ILogger <HomeController> logger, IPrimeNumberDeterminator primeNumberDeterminator)
 {
     this.logger = logger;
     this.primeNumberDeterminator = primeNumberDeterminator;
 }