public void ThenEachFutureMonthSForecastLevyCreditShouldBeTheSame() { var fundsIn = LevySubmissions.Sum(levy => levy.Amount); Assert.IsTrue(AccountProjections.All(projection => projection.LevyFundsIn == fundsIn)); }
public void ThenCalculatedLevyCreditValueShouldBeTheAmountDeclaredForTheSumOfTheLinkedPAYESchemes() { AccountProjections.ForEach(projection => Assert.AreEqual(projection.LevyFundsIn, LevySubmissions.Sum(levy => levy.Amount), $"Expected the account projections to be {LevySubmissions.FirstOrDefault()?.Amount} but was {projection.LevyFundsIn}")); }