public void FDReferenceTypeMAPassesValidReferenceTypes() { var model = new SupplementaryDataLooseModel { ReferenceType = new string('1', 20) }; var rule = new FDReferenceTypeMA(_messageServiceMock.Object); Assert.True(rule.IsValid(model)); }
public void FDReferenceTypeMACatchesEmptyReferenceTypes() { var model = new SupplementaryDataLooseModel { ReferenceType = null }; var rule = new FDReferenceTypeMA(_messageServiceMock.Object); Assert.False(rule.IsValid(model)); }