public void FDReferenceTypeALCatchesTooLongReferenceTypes() { var model = new SupplementaryDataLooseModel { ReferenceType = new string('1', 21) }; var rule = new FDReferenceTypeAL(_messageServiceMock.Object); Assert.False(rule.IsValid(model)); }
public void FDReferenceTypeALPassesValidReferenceTypes() { var model = new SupplementaryDataLooseModel { ReferenceType = new string('1', 20) }; var rule = new FDReferenceTypeAL(_messageServiceMock.Object); Assert.True(rule.IsValid(model)); }