public void FDReferenceMAPassesValidReferences() { var model = new SupplementaryDataLooseModel { Reference = new string('1', 100) }; var rule = new FDReferenceMA(_messageServiceMock.Object); Assert.True(rule.IsValid(model)); }
public void FDReferenceMACatchesEmptyReferences() { var model = new SupplementaryDataLooseModel { Reference = null }; var rule = new FDReferenceMA(_messageServiceMock.Object); Assert.False(rule.IsValid(model)); }