public void EnrolleeValidator_AllValuesProvided_AllMissing() { var rule = new AllValuesProvided(); enrollee = new Enrollee(new string[0] { }); Assert.IsFalse(rule.IsSatisfiedBy(enrollee)); }
public void EnrolleeValidator_AllValuesProvided_OneValueMissing() { var rule = new AllValuesProvided(); enrollee = new Enrollee(new string[4] { "Element 1", "Element 2", "Element 3", "Element 4" }); Assert.IsFalse(rule.IsSatisfiedBy(enrollee)); }
public void EnrolleeValidator_AllValuesProvided_Succeeds() { var rule = new AllValuesProvided(); Assert.IsTrue(rule.IsSatisfiedBy(enrollee)); }