Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created January 24, 2016 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angelovstanton/89ac13106acf3cc34818 to your computer and use it in GitHub Desktop.
Save angelovstanton/89ac13106acf3cc34818 to your computer and use it in GitHub Desktop.
public interface ISpecification<TEntity>
{
bool IsSatisfiedBy(TEntity entity);
ISpecification<TEntity> And(ISpecification<TEntity> other);
ISpecification<TEntity> Or(ISpecification<TEntity> other);
ISpecification<TEntity> Not();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment