Beispiel #1
0
        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());
        }
Beispiel #2
0
        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());
        }