public void FDValueALCatchesTooLongValues() { var model = new SupplementaryDataLooseModel { Value = "1234567.123" }; var rule = new FDValueAL(); Assert.False(rule.Execute(model)); }
public void FDValueALPassesValidValues() { var model = new SupplementaryDataLooseModel { Value = "123456.12" }; var rule = new FDValueAL(_messageServiceMock.Object); Assert.True(rule.IsValid(model)); }
public void FDValueALPassesValidValues() { var model = new SupplementaryDataLooseModel { Value = "123456.12" }; var rule = new FDValueAL(); Assert.True(rule.Execute(model)); }
public void FDValueALCatchesTooLongValues() { var model = new SupplementaryDataLooseModel { Value = "1234567.123" }; var rule = new FDValueAL(_messageServiceMock.Object); Assert.False(rule.IsValid(model)); }