From 6847cdaa0c28b8bb86d1745bb05fa2ddb60200f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Michel?= Date: Fri, 21 Jan 2022 16:36:07 +0100 Subject: [PATCH] update all nuget package use new version of Ardalis.Specifications (#668) --- src/ApplicationCore/ApplicationCore.csproj | 6 +++--- src/Infrastructure/Infrastructure.csproj | 4 ++-- src/PublicApi/PublicApi.csproj | 10 +++++----- src/Web/Web.csproj | 12 ++++++------ .../CatalogFilterPaginatedSpecification.cs | 4 ++-- .../Specifications/CatalogFilterSpecification.cs | 2 +- .../Specifications/CatalogItemsSpecification.cs | 4 ++-- .../CustomerOrdersWithItemsSpecification.cs | 4 ++-- 8 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/ApplicationCore/ApplicationCore.csproj b/src/ApplicationCore/ApplicationCore.csproj index 3e939d281..260e74977 100644 --- a/src/ApplicationCore/ApplicationCore.csproj +++ b/src/ApplicationCore/ApplicationCore.csproj @@ -6,9 +6,9 @@ - - - + + + diff --git a/src/Infrastructure/Infrastructure.csproj b/src/Infrastructure/Infrastructure.csproj index 922227619..7d747ceb7 100644 --- a/src/Infrastructure/Infrastructure.csproj +++ b/src/Infrastructure/Infrastructure.csproj @@ -6,11 +6,11 @@ - + - + diff --git a/src/PublicApi/PublicApi.csproj b/src/PublicApi/PublicApi.csproj index c8e095221..38bd2c5a4 100644 --- a/src/PublicApi/PublicApi.csproj +++ b/src/PublicApi/PublicApi.csproj @@ -9,10 +9,10 @@ - - - - + + + + @@ -30,7 +30,7 @@ - + diff --git a/src/Web/Web.csproj b/src/Web/Web.csproj index 88a35e38b..f69f30eec 100644 --- a/src/Web/Web.csproj +++ b/src/Web/Web.csproj @@ -15,15 +15,15 @@ - - - - + + + + - + @@ -33,7 +33,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/tests/UnitTests/ApplicationCore/Specifications/CatalogFilterPaginatedSpecification.cs b/tests/UnitTests/ApplicationCore/Specifications/CatalogFilterPaginatedSpecification.cs index 208593e9d..c3d382892 100644 --- a/tests/UnitTests/ApplicationCore/Specifications/CatalogFilterPaginatedSpecification.cs +++ b/tests/UnitTests/ApplicationCore/Specifications/CatalogFilterPaginatedSpecification.cs @@ -14,7 +14,7 @@ public void ReturnsAllCatalogItems() var result = GetTestCollection() .AsQueryable() - .Where(spec.WhereExpressions.FirstOrDefault()); + .Where(spec.WhereExpressions.FirstOrDefault().Filter); Assert.NotNull(result); Assert.Equal(4, result.ToList().Count); @@ -27,7 +27,7 @@ public void Returns2CatalogItemsWithSameBrandAndTypeId() var result = GetTestCollection() .AsQueryable() - .Where(spec.WhereExpressions.FirstOrDefault()); + .Where(spec.WhereExpressions.FirstOrDefault().Filter); Assert.NotNull(result); Assert.Equal(2, result.ToList().Count); diff --git a/tests/UnitTests/ApplicationCore/Specifications/CatalogFilterSpecification.cs b/tests/UnitTests/ApplicationCore/Specifications/CatalogFilterSpecification.cs index f5d01a6c4..56b1e0d9b 100644 --- a/tests/UnitTests/ApplicationCore/Specifications/CatalogFilterSpecification.cs +++ b/tests/UnitTests/ApplicationCore/Specifications/CatalogFilterSpecification.cs @@ -21,7 +21,7 @@ public void MatchesExpectedNumberOfItems(int? brandId, int? typeId, int expected var result = GetTestItemCollection() .AsQueryable() - .Where(spec.WhereExpressions.FirstOrDefault()); + .Where(spec.WhereExpressions.FirstOrDefault().Filter); Assert.Equal(expectedCount, result.Count()); } diff --git a/tests/UnitTests/ApplicationCore/Specifications/CatalogItemsSpecification.cs b/tests/UnitTests/ApplicationCore/Specifications/CatalogItemsSpecification.cs index 84156ce3b..0085ca710 100644 --- a/tests/UnitTests/ApplicationCore/Specifications/CatalogItemsSpecification.cs +++ b/tests/UnitTests/ApplicationCore/Specifications/CatalogItemsSpecification.cs @@ -16,7 +16,7 @@ public void MatchesSpecificCatalogItem() var result = GetTestCollection() .AsQueryable() - .Where(spec.WhereExpressions.FirstOrDefault()); + .Where(spec.WhereExpressions.FirstOrDefault().Filter); Assert.NotNull(result); Assert.Single(result.ToList()); @@ -30,7 +30,7 @@ public void MatchesAllCatalogItems() var result = GetTestCollection() .AsQueryable() - .Where(spec.WhereExpressions.FirstOrDefault()); + .Where(spec.WhereExpressions.FirstOrDefault().Filter); Assert.NotNull(result); Assert.Equal(2, result.ToList().Count); diff --git a/tests/UnitTests/ApplicationCore/Specifications/CustomerOrdersWithItemsSpecification.cs b/tests/UnitTests/ApplicationCore/Specifications/CustomerOrdersWithItemsSpecification.cs index f95d3b522..fe3281e3a 100644 --- a/tests/UnitTests/ApplicationCore/Specifications/CustomerOrdersWithItemsSpecification.cs +++ b/tests/UnitTests/ApplicationCore/Specifications/CustomerOrdersWithItemsSpecification.cs @@ -17,7 +17,7 @@ public void ReturnsOrderWithOrderedItem() var result = GetTestCollection() .AsQueryable() - .FirstOrDefault(spec.WhereExpressions.FirstOrDefault()); + .FirstOrDefault(spec.WhereExpressions.FirstOrDefault().Filter); Assert.NotNull(result); Assert.NotNull(result.OrderItems); @@ -32,7 +32,7 @@ public void ReturnsAllOrderWithAllOrderedItem() var result = GetTestCollection() .AsQueryable() - .Where(spec.WhereExpressions.FirstOrDefault()) + .Where(spec.WhereExpressions.FirstOrDefault().Filter) .ToList(); Assert.NotNull(result);