コード例 #1
0
        public async Task KnowsWhenTwoComplexWorkingPeopleCanRetire_NoGivenRetirementDate_RetirementAfterPrivatePensionAge()
        {
            var calc = new RetirementIncrementalApproachCalculator(_fixedDateProvider, _assumptions, _pensionAgeCalc, _statePensionCalculator, _taxSystem);

            var person1 = new Person {
                Salary = 50_000, Dob = new DateTime(1981, 05, 30), ExistingSavings = 50_000, ExistingPrivatePension = 50_000,
                EmployeeContribution = 5m, EmployerContribution = 3m, EmergencyFundSpec = new EmergencyFundSpec("50000")
            };
            var person2 = new Person {
                Salary = 50_000, Dob = new DateTime(1981, 05, 30), ExistingSavings = 50_000, ExistingPrivatePension = 50_000,
                EmployeeContribution = 5m, EmployerContribution = 3m, EmergencyFundSpec = new EmergencyFundSpec("50000")
            };

            IEnumerable <Person>       personStatuses = new[] { person1, person2 };
            IEnumerable <SpendingStep> stepInputs     = new [] { new SpendingStep(_fixedDateProvider.Now(), 70_000) };
コード例 #2
0
 public async Task KnowsWhenASalariedWorkerCanRetire_ThisYear()
 {
     var calc   = new RetirementIncrementalApproachCalculator(_fixedDateProvider, _assumptions, _pensionAgeCalc, _fixedStatePensionAmountCalculator, _taxSystem);
     var report = await calc.ReportForAsync(new Family(new Person {
         Salary = 30_000, Dob = new DateTime(1981, 05, 30)
     },