public void EnabledByDefault() { TestDbContext.Exec(context => { var dbSet = context.Set <DataItem>(); var loadOptions = new SampleLoadOptions { Group = new[] { new GroupingInfo { Selector = "Group", IsExpanded = false } } }; DataSourceLoader.Load(dbSet, loadOptions); Assert.Contains(loadOptions.ExpressionLog, i => i.Contains(".GroupBy")); }); }
public void DisabledByDefault() { TestDbContext.Exec(context => { var dbSet = context.RemoteGrouping_Data; var loadOptions = new SampleLoadOptions { Group = new[] { new GroupingInfo { Selector = "Group", IsExpanded = false } } }; DataSourceLoader.Load(dbSet, loadOptions); Assert.NotEmpty(loadOptions.ExpressionLog); Assert.DoesNotContain(loadOptions.ExpressionLog, i => i.Contains(".GroupBy")); }); }
public async Task DisabledByDefault() { await TestDbContext.ExecAsync(context => { var dbSet = context.Set <DataItem>(); var loadOptions = new SampleLoadOptions { Group = new[] { new GroupingInfo { Selector = "Group", IsExpanded = false } } }; DataSourceLoader.Load(dbSet, loadOptions); Assert.NotEmpty(loadOptions.ExpressionLog); Assert.DoesNotContain(loadOptions.ExpressionLog, i => i.Contains(".GroupBy")); }); }