update all nuget package use new version of Ardalis.Specifications (#668)

This commit is contained in:
Cédric Michel
2022-01-21 16:36:07 +01:00
committed by GitHub
parent c037227b55
commit 6847cdaa0c
8 changed files with 23 additions and 23 deletions

View File

@@ -14,7 +14,7 @@ public class CatalogFilterPaginatedSpecification
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 class CatalogFilterPaginatedSpecification
var result = GetTestCollection()
.AsQueryable()
.Where(spec.WhereExpressions.FirstOrDefault());
.Where(spec.WhereExpressions.FirstOrDefault().Filter);
Assert.NotNull(result);
Assert.Equal(2, result.ToList().Count);

View File

@@ -21,7 +21,7 @@ public class CatalogFilterSpecification
var result = GetTestItemCollection()
.AsQueryable()
.Where(spec.WhereExpressions.FirstOrDefault());
.Where(spec.WhereExpressions.FirstOrDefault().Filter);
Assert.Equal(expectedCount, result.Count());
}

View File

@@ -16,7 +16,7 @@ public class CatalogItemsSpecification
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 class CatalogItemsSpecification
var result = GetTestCollection()
.AsQueryable()
.Where(spec.WhereExpressions.FirstOrDefault());
.Where(spec.WhereExpressions.FirstOrDefault().Filter);
Assert.NotNull(result);
Assert.Equal(2, result.ToList().Count);

View File

@@ -17,7 +17,7 @@ public class CustomerOrdersWithItemsSpecification
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 class CustomerOrdersWithItemsSpecification
var result = GetTestCollection()
.AsQueryable()
.Where(spec.WhereExpressions.FirstOrDefault())
.Where(spec.WhereExpressions.FirstOrDefault().Filter)
.ToList();
Assert.NotNull(result);