Created
January 24, 2016 17:36
-
-
Save angelovstanton/4f23fca6dfee498262c9 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
public class PromotionalPurchaseSpecification : Specification<PurchaseTestInput> | |
{ | |
private readonly PurchaseTestInput purchaseTestInput; | |
public PromotionalPurchaseSpecification(PurchaseTestInput purchaseTestInput) | |
{ | |
this.purchaseTestInput = purchaseTestInput; | |
} | |
public override bool IsSatisfiedBy(PurchaseTestInput entity) | |
{ | |
return this.purchaseTestInput.IsPromotionalPurchase && this.purchaseTestInput.TotalPrice < 5; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment