Statistics
| Branch: | Revision:

root / trunk / hammock / src / net35 / Hammock / Specifications / ISpecification.cs @ 0eea575a

History | View | Annotate | Download (338 Bytes)

1
namespace Hammock.Specifications
2
{
3
    public interface ISpecification
4
    {
5

    
6
    }
7

    
8
    public interface ISpecification<T> : ISpecification
9
    {
10
        bool IsSatisfiedBy(T instance);
11
        ISpecification<T> And(ISpecification<T> other);
12
        ISpecification<T> Or(ISpecification<T> other);
13
        ISpecification<T> Not();
14
    }
15
}