public SharedFundAppService(ISharedFundRepository sharedFundRepository,
                             IInflationAdjustService inflationAdjustService, IEmployeeService employeeService)
 {
     _sharedFundRepository   = sharedFundRepository;
     _inflationAdjustService = inflationAdjustService;
     _employeeService        = employeeService;
 }
Example #2
0
        public void InflationAdjustService_InflationAdjustment()
        {
            var inflationAdjusts = GenerateInflationAdjusts();
            var sharedFunds      = GenerateSharedFunds();

            _inflationAdjustRepository.Setup(i => i.GetAll()).Returns(inflationAdjusts);
            _inflationAdjustService = new InflationAdjustService(_inflationAdjustRepository.Object);

            Assert.Equal(5606.28M, _inflationAdjustService.InflationAdjustment(sharedFunds));
        }