public async Task PropertyCollectionBuilder_PropertyRule() { var cos = new ChangeOfSupplier(new List <int>()); cos.ListOfNumbers.Add(2); cos.ListOfNumbers.Add(5); cos.ListOfNumbers.Add(12); var ruleset = new ChangeOfSupplierRuleCollection(); var result = await ruleset.ValidateAsync(new ValidationContext <ChangeOfSupplier>(cos), SP).ConfigureAwait(false); Assert.False(result.Success); }
public async Task Correct_input_should_return_true() { var ruleCollection = new ChangeOfSupplierRuleCollection();