Created
July 7, 2015 22:30
-
-
Save andrebaltieri/b286b534e9f17e29cd4a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace ModernWebStore.Domain.Specs | |
{ | |
public static class ProductSpecs | |
{ | |
public static Expression<Func<Product, bool>> GetProductsInStock() | |
{ | |
return x => x.QuantityOnHand > 0; | |
} | |
public static Expression<Func<Product, bool>> GetProductsOutOfStock() | |
{ | |
return x => x.QuantityOnHand == 0; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment