public void Should_return_ZERO_for_Mandatory_Basis_when_General_Basis_is_1001_and_Mandatory_Duty_is_False() { IEnginesHistory <IHealthEngine> engines = HealthEnginesHistory.CreateEngines(); IHealthEngine engine = engines.ResolveEngine(testPeriod); bool testMandatoryDuty = false; decimal testIncome = 1001m; decimal resultValue = engine.BasisMandatoryBalance(testPeriod, testMandatoryDuty, testIncome); Assert.AreEqual(0, resultValue); }
public void Should_return_9200_for_Mandatory_Basis_when_General_Basis_is_0() { IEnginesHistory <IHealthEngine> engines = HealthEnginesHistory.CreateEngines(); IHealthEngine engine = engines.ResolveEngine(testPeriod); bool testMandatoryDuty = true; decimal testIncome = 0m; decimal resultValue = engine.BasisMandatoryBalance(testPeriod, testMandatoryDuty, testIncome); Assert.AreEqual(9200m, resultValue); }