Created
January 24, 2016 17:33
-
-
Save angelovstanton/aa68869be374e6e3dbe3 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 CreditCardSpecification : Specification<PurchaseTestInput> | |
{ | |
private readonly PurchaseTestInput purchaseTestInput; | |
public CreditCardSpecification(PurchaseTestInput purchaseTestInput) | |
{ | |
this.purchaseTestInput = purchaseTestInput; | |
} | |
public override bool IsSatisfiedBy(PurchaseTestInput entity) | |
{ | |
return !string.IsNullOrEmpty(this.purchaseTestInput.CreditCardNumber); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment