update all nuget package use new version of Ardalis.Specifications (#668)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user