public void ReferenceTypeRule02CatchesInvalidReferenceTypeCostTypeCombinations() { var model = new SupplementaryDataModel { ReferenceType = "Other", CostType = "Employee ID" }; var rule = new ReferenceTypeRule02(); Assert.False(rule.Execute(model)); }
public void ReferenceTypeRule02PassesValidReferenceTypeCostTypeCombinations() { var model = new SupplementaryDataModel { ReferenceType = "Apportioned Cost", CostType = "Employee ID" }; var rule = new ReferenceTypeRule02(_messageServiceMock.Object); Assert.True(rule.IsValid(model)); }
public void ReferenceTypeRule02PassesValidReferenceTypeCostTypeCombinations() { var model = new SupplementaryDataModel { ReferenceType = "Apportioned Cost", CostType = "Employee ID" }; var rule = new ReferenceTypeRule02(); Assert.True(rule.Execute(model)); }
public void ReferenceTypeRule02CatchesInvalidReferenceTypeCostTypeCombinations() { var model = new SupplementaryDataModel { ReferenceType = "Other", CostType = "Employee ID" }; var rule = new ReferenceTypeRule02(_messageServiceMock.Object); Assert.False(rule.IsValid(model)); }