Created
January 24, 2016 17:29
-
-
Save angelovstanton/883129267436e666421c 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 NotSpecification<TEntity> : Specification<TEntity> | |
{ | |
private readonly ISpecification<TEntity> specification; | |
public NotSpecification(ISpecification<TEntity> specification) | |
{ | |
this.specification = specification; | |
} | |
public override bool IsSatisfiedBy(TEntity entity) | |
{ | |
return !this.specification.IsSatisfiedBy(entity); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment