public void TestGetPredicate() { var criteria = new AndCriteria <AggregateRootSample>(t => t.Name == "a", t => t.Name != "b"); Assert.Equal("t => ((t.Name == \"a\") AndAlso (t.Name != \"b\"))", criteria.GetPredicate().ToString()); }
public void TestGetPredicate() { var criteria = new AndCriteria <Book>(t => t.Id == 100, t => t.Title.Contains("123")); Assert.Equal("t => ((t.Id == 100) AndAlso t.Title.Contains(\"123\"))", criteria.GetPredicate().ToString()); }