예제 #1
0
 public void OrderBy_GetSet()
 {
     var instance = new FakeEntitiesQuery
     {
         OrderBy = new Dictionary<Expression<Func<FakeEntityWithNavigationProperty, object>>, OrderByDirection>
         {
             { x => x.NavigationProperty, OrderByDirection.Ascending }
         }
     };
     instance.ShouldNotBeNull();
     instance.OrderBy.Count().ShouldEqual(1);
 }
예제 #2
0
 public void EagerLoad_GetSet()
 {
     var instance = new FakeEntitiesQuery
     {
         EagerLoad = new Expression<Func<FakeEntityWithNavigationProperty, object>>[]
         {
             x => x.NavigationProperty,
         }
     };
     instance.ShouldNotBeNull();
     instance.EagerLoad.Count().ShouldEqual(1);
 }
예제 #3
0
        public void OrderBy_GetSet()
        {
            var instance = new FakeEntitiesQuery
            {
                OrderBy = new Dictionary <Expression <Func <FakeEntityWithNavigationProperty, object> >, OrderByDirection>
                {
                    { x => x.NavigationProperty, OrderByDirection.Ascending }
                }
            };

            instance.ShouldNotBeNull();
            instance.OrderBy.Count().ShouldEqual(1);
        }
예제 #4
0
        public void EagerLoad_GetSet()
        {
            var instance = new FakeEntitiesQuery
            {
                EagerLoad = new Expression <Func <FakeEntityWithNavigationProperty, object> >[]
                {
                    x => x.NavigationProperty,
                }
            };

            instance.ShouldNotBeNull();
            instance.EagerLoad.Count().ShouldEqual(1);
        }