/// <summary> /// Initializes a new instance of the <see cref="T:SoftplanCalc.Api.Tests.CalculateInterestControllerUnitTest"/> class. /// </summary> public CalculateInterestControllerUnitTest() { var configuration = TestHelper.GetIConfiguration(Directory.GetCurrentDirectory()); var options = new CalculateInterestOptions(); var section = configuration.GetSection("CalculateInterest"); section.Bind(options); var calculateInsterestService = new CalculateInterestService(options); var logger = new BaseLogger(); _calculateInterestController = new CalculateInterestController(logger, calculateInsterestService); }
public CalculateInterestControllerTest() { _calculateInterestHandler = new Mock <ICalculateInterestRateHandler>(); _controller = new CalculateInterestController(_calculateInterestHandler.Object); }
public static CalculateInterestController Fixture() { CalculateInterestController controller = new CalculateInterestController(new CalculateInterestRepository(), "", new LoginView()); return(controller); }
public void Init() { Controller = new CalculateInterestController(new InterestRatesServiceMock()); }
public static CalculateInterestController Fixture() { CalculateInterestController controller = new CalculateInterestController(new CalculateInterestRepository(), "", new LoginView()); return controller; }