public CalculatorManagerTestsAlternate()
        {
            _mathRepository = Substitute.For <IMathRepository>();

            _mathRepository.GetIntMax().Returns(Int32.MaxValue);
            _mathRepository.GetIntMin().Returns(Int32.MinValue);

            _calculatorManager = new CalculatorManager(_mathRepository);
        }
Exemplo n.º 2
0
 public int AddToMinInt(int number)
 {
     return(_mathRepositories.GetIntMin() + number);
 }