public void FDReferenceALPassesValidReferences() { var model = new SupplementaryDataLooseModel { Reference = new string('1', 100) }; var rule = new FDReferenceAL(_messageServiceMock.Object); Assert.True(rule.IsValid(model)); }
public void FDReferenceALCatchesTooLongReferences() { var model = new SupplementaryDataLooseModel { Reference = new string('1', 101) }; var rule = new FDReferenceAL(_messageServiceMock.Object); Assert.False(rule.IsValid(model)); }