public void FDCostTypeALPassesValidCostTypes() { var model = new SupplementaryDataLooseModel { CostType = "12345678901234567890" }; var rule = new FDCostTypeAL(_messageServiceMock.Object); Assert.True(rule.IsValid(model)); }
public void FDCostTypeALCatchesTooLongCostTypes() { var model = new SupplementaryDataLooseModel { CostType = "123456789012345678901" }; var rule = new FDCostTypeAL(_messageServiceMock.Object); Assert.False(rule.IsValid(model)); }