Пример #1
0
        /// <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);
        }
Пример #2
0
 public CalculateInterestControllerTest()
 {
     _calculateInterestHandler = new Mock <ICalculateInterestRateHandler>();
     _controller = new CalculateInterestController(_calculateInterestHandler.Object);
 }
Пример #3
0
        public static CalculateInterestController Fixture()
        {
            CalculateInterestController controller = new CalculateInterestController(new CalculateInterestRepository(), "", new LoginView());

            return(controller);
        }
Пример #4
0
 public void Init()
 {
     Controller = new CalculateInterestController(new InterestRatesServiceMock());
 }
 public static CalculateInterestController Fixture()
 {
     CalculateInterestController controller = new CalculateInterestController(new CalculateInterestRepository(), "", new LoginView());
     return controller;
 }