/// <summary>
        /// Initializes a new instance of the <see cref="T:SoftplanCalc.Api.Tests.CalculateInterestServiceUnitTest"/> class.
        /// </summary>
        public CalculateInterestServiceUnitTest()
        {
            var configuration = TestHelper.GetIConfiguration(Directory.GetCurrentDirectory());

            var options = new CalculateInterestOptions();
            var section = configuration.GetSection("CalculateInterest");

            section.Bind(options);

            _calculateInterestService = new CalculateInterestService(options);
        }
Example #2
0
 public CalculeInterestController(ICalculateInterestService calculateInterestService)
 {
     _calculateInterestService = calculateInterestService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="T:SoftplanCalc.Api.Controllers.CalculateInterestController"/> class.
 /// </summary>
 /// <param name="logger">Logger.</param>
 /// <param name="calculateInterestService">Calculate interest service.</param>
 public CalculateInterestController(IBaseLogger logger, ICalculateInterestService calculateInterestService)
 {
     _logger = logger;
     _calculateInterestService = calculateInterestService;
 }