public void GivenNamedEmployersLevyBalanceIsDifferentPerMonth(string employerNumber, Table employerBalancesTable) { int id; if (!int.TryParse(employerNumber, out id)) { throw new ArgumentException($"Employer number '{employerNumber}' is not a valid number"); } var periodBalances = LevyBalanceTableParser.ParseLevyAccountBalanceTable(employerBalancesTable, id); AddOrUpdateEmployerAccount(id, 0m, periodBalances); }
public void ThenTheEmployerSLevyBalanceIs(Table table) { var periodBalances = LevyBalanceTableParser.ParseLevyAccountBalanceTable(table, Defaults.EmployerAccountId); var breakdown = new EarningsAndPaymentsBreakdown { EmployerLevyTransactions = periodBalances }; EarningsAndPaymentsContext.OverallEarningsAndPayments.Add(breakdown); PaymentsAndEarningsAssertions.AssertPaymentsAndEarningsResults(EarningsAndPaymentsContext, SubmissionContext, EmployerAccountContext); }