public void PersonUnder18ShouldBeUnapprovedProperty() { Prop.ForAll(PeopleGenerators.PersonUnder18().ToArbitrary(), p => LoanCalculator.Calculate(p).ApprovalStatus == ApprovalStatus.Unapproved) .QuickCheckThrowOnFailure(); }
public static Arbitrary <Person> Generate() { return(PeopleGenerators.PersonUnder18().ToArbitrary()); }