public CalculatorManagerTestsAlternate() { _mathRepository = Substitute.For <IMathRepository>(); _mathRepository.GetIntMax().Returns(Int32.MaxValue); _mathRepository.GetIntMin().Returns(Int32.MinValue); _calculatorManager = new CalculatorManager(_mathRepository); }
public int AddToMinInt(int number) { return(_mathRepositories.GetIntMin() + number); }