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);
 }
 public void EagerLoad_GetSet()
 {
     var instance = new FakeEntitiesQuery
     {
         EagerLoad = new Expression<Func<FakeEntityWithNavigationProperty, object>>[]
         {
             x => x.NavigationProperty,
         }
     };
     instance.ShouldNotBeNull();
     instance.EagerLoad.Count().ShouldEqual(1);
 }
Beispiel #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);
        }
Beispiel #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);
        }