From 41f456e30dba56be8410c8f228d94130ee3f04f9 Mon Sep 17 00:00:00 2001 From: David Lebee Date: Mon, 22 Jul 2019 17:03:21 -0500 Subject: [PATCH] updating references. --- .../PoweredSoft.DynamicQuery.Cli.csproj | 2 +- PoweredSoft.DynamicQuery.Test/GroupTests.cs | 56 ------------------- .../PoweredSoft.DynamicQuery.Test.csproj | 15 +++-- .../PoweredSoft.DynamicQuery.csproj | 2 +- 4 files changed, 11 insertions(+), 64 deletions(-) diff --git a/PoweredSoft.DynamicQuery.Cli/PoweredSoft.DynamicQuery.Cli.csproj b/PoweredSoft.DynamicQuery.Cli/PoweredSoft.DynamicQuery.Cli.csproj index 3ec5c61..e702975 100644 --- a/PoweredSoft.DynamicQuery.Cli/PoweredSoft.DynamicQuery.Cli.csproj +++ b/PoweredSoft.DynamicQuery.Cli/PoweredSoft.DynamicQuery.Cli.csproj @@ -6,7 +6,7 @@ - + diff --git a/PoweredSoft.DynamicQuery.Test/GroupTests.cs b/PoweredSoft.DynamicQuery.Test/GroupTests.cs index e2c330b..5f9c3b2 100644 --- a/PoweredSoft.DynamicQuery.Test/GroupTests.cs +++ b/PoweredSoft.DynamicQuery.Test/GroupTests.cs @@ -52,62 +52,6 @@ namespace PoweredSoft.DynamicQuery.Test }); } - [Fact] - public void A() - { - /* - MockContextFactory.SeedAndTestContextFor("GroupTests_A", TestSeeders.SeedTicketScenario, ctx => - { - var a = ctx.Tickets - .OrderBy(t => t.Owner) - .ThenBy(t => t.Priority) - .Skip(0) - .Take(100) - .GroupBy(t => new - { - t.Owner, - t.Priority - }) - .Select(t => new - { - t.Key.Owner, - t.Key.Priority, - Records = t.ToList() - }) - .ToList(); - - int breakHere = 0; - });*/ - - MockContextFactory.SeedAndTestContextFor("GroupTests_A2", TestSeeders.SeedTicketScenario, ctx => - { - var criteria = new QueryCriteria() - { - Groups = new List() - { - new Group { Path = "Owner" }, - new Group { Path = "Priority" } - }, - Page = 1, - PageSize = 100 - }; - - var queryHandler = new QueryHandler(); - var result = queryHandler.Execute(ctx.Tickets, criteria); - - var groupedResult = result.GroupedResult(); - - var firstGroup = groupedResult.Groups.FirstOrDefault(); - Assert.NotNull(firstGroup); - var secondGroup = groupedResult.Groups.Skip(1).FirstOrDefault(); - Assert.NotNull(secondGroup); - - var expected = ctx.Tickets.Select(t => t.TicketType).Distinct().Count(); - var c = groupedResult.Groups.Select(t => t.GroupValue).Count(); - Assert.Equal(expected, c); - }); - } - [Fact] public void GroupComplex() { diff --git a/PoweredSoft.DynamicQuery.Test/PoweredSoft.DynamicQuery.Test.csproj b/PoweredSoft.DynamicQuery.Test/PoweredSoft.DynamicQuery.Test.csproj index 6aaca8a..0c28a1d 100644 --- a/PoweredSoft.DynamicQuery.Test/PoweredSoft.DynamicQuery.Test.csproj +++ b/PoweredSoft.DynamicQuery.Test/PoweredSoft.DynamicQuery.Test.csproj @@ -7,13 +7,16 @@ - - - - + + + + - - + + + all + runtime; build; native; contentfiles; analyzers + diff --git a/PoweredSoft.DynamicQuery/PoweredSoft.DynamicQuery.csproj b/PoweredSoft.DynamicQuery/PoweredSoft.DynamicQuery.csproj index c7bb118..eb3f4f9 100644 --- a/PoweredSoft.DynamicQuery/PoweredSoft.DynamicQuery.csproj +++ b/PoweredSoft.DynamicQuery/PoweredSoft.DynamicQuery.csproj @@ -21,7 +21,7 @@ - +