Steve Smith
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
src/ApplicationCore/Specifications/BaseSpecification.cs
-
src/ApplicationCore/Specifications/BasketWithItemsSpecification.cs
|
|
@ -7,7 +7,7 @@ namespace ApplicationCore.Specifications |
|
|
{ |
|
|
{ |
|
|
public abstract class BaseSpecification<T> : ISpecification<T> |
|
|
public abstract class BaseSpecification<T> : ISpecification<T> |
|
|
{ |
|
|
{ |
|
|
public BaseSpecification(Expression<Func<T, bool>> criteria) |
|
|
protected BaseSpecification(Expression<Func<T, bool>> criteria) |
|
|
{ |
|
|
{ |
|
|
Criteria = criteria; |
|
|
Criteria = criteria; |
|
|
} |
|
|
} |
|
|
|
|
|
@ -2,7 +2,7 @@ |
|
|
|
|
|
|
|
|
namespace ApplicationCore.Specifications |
|
|
namespace ApplicationCore.Specifications |
|
|
{ |
|
|
{ |
|
|
public class BasketWithItemsSpecification : BaseSpecification<Basket> |
|
|
public sealed class BasketWithItemsSpecification : BaseSpecification<Basket> |
|
|
{ |
|
|
{ |
|
|
public BasketWithItemsSpecification(int basketId) |
|
|
public BasketWithItemsSpecification(int basketId) |
|
|
:base(b => b.Id == basketId) |
|
|
:base(b => b.Id == basketId) |
|
|
|