public void FDULNALCatchesTooLongULNs() { var model = new SupplementaryDataLooseModel { ULN = "12345678901" }; var rule = new FDULNAL(); Assert.False(rule.Execute(model)); }
public void FDULNALPassesValidULNs() { var model = new SupplementaryDataLooseModel { ULN = "1234567890" }; var rule = new FDULNAL(_messageServiceMock.Object); Assert.True(rule.IsValid(model)); }
public void FDULNALPassesValidULNs() { var model = new SupplementaryDataLooseModel { ULN = "1234567890" }; var rule = new FDULNAL(); Assert.True(rule.Execute(model)); }
public void FDULNALCatchesTooLongULNs() { var model = new SupplementaryDataLooseModel { ULN = "12345678901" }; var rule = new FDULNAL(_messageServiceMock.Object); Assert.False(rule.IsValid(model)); }