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 FDReferenceMAPassesValidReferences() { var model = new SupplementaryDataLooseModel { Reference = new string('1', 100) }; var rule = new FDReferenceMA(); Assert.True(rule.Execute(model)); }
public void FDReferenceMACatchesEmptyReferences() { var model = new SupplementaryDataLooseModel { Reference = null }; var rule = new FDReferenceMA(_messageServiceMock.Object); Assert.False(rule.IsValid(model)); }
public void FDReferenceMACatchesEmptyReferences() { var model = new SupplementaryDataLooseModel { Reference = null }; var rule = new FDReferenceMA(); Assert.False(rule.Execute(model)); }