public void CostTypeRule02PassesValidCostTypeDeliverableCodeCombinations() { var model = new SupplementaryDataModel { DeliverableCode = "CG01", CostType = "Grant" }; var rule = new CostTypeRule02(); Assert.True(rule.Execute(model)); }
public void CostTypeRule02PassesValidCostTypeDeliverableCodeCombinations() { var model = new SupplementaryDataModel { DeliverableCode = "CG01", CostType = "Grant" }; var rule = new CostTypeRule02(_messageServiceMock.Object); Assert.True(rule.IsValid(model)); }
public void CostTypeRule02CatchesInvalidCostTypeDeliverableCodeCombinations() { var model = new SupplementaryDataModel { DeliverableCode = "CG01", CostType = "I am not valid" }; var rule = new CostTypeRule02(); Assert.False(rule.Execute(model)); }
public void CostTypeRule02CatchesInvalidCostTypeDeliverableCodeCombinations() { var model = new SupplementaryDataModel { DeliverableCode = "CG01", CostType = "I am not valid" }; var rule = new CostTypeRule02(_messageServiceMock.Object); Assert.False(rule.IsValid(model)); }