public SetVerificationGrammar MatchOn(params Expression <Func <T, object> >[] properties) { var comparer = new ObjectComparer <T>(); foreach (var property in properties) { comparer.MatchOn(property); } var grammar = new SetVerificationGrammar(_leafName, _title, comparer) { Description = _description, Ordered = _ordered }; grammar.Before((step, context) => { context.CurrentObject = _dataSource(context); }); return(grammar); }
public void SetUp() { comparer = new ObjectComparer<Address>(); comparer.MatchOn(x => x.City).MatchOn((x => x.Address1)).MatchOn(x => x.DistanceFromOffice); }