mirror of https://github.com/ogoun/Zero.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
499 B
22 lines
499 B
using ZeroLevel.Specification;
|
|
using ZeroSpecificationPatternsTest.Models;
|
|
|
|
namespace ZeroSpecificationPatternsTest.Specifications
|
|
{
|
|
public class LongNumberSpecification :
|
|
BaseSpecification<TestDTO>
|
|
{
|
|
private readonly long _expected;
|
|
|
|
public LongNumberSpecification(long expected)
|
|
{
|
|
_expected = expected;
|
|
}
|
|
|
|
public override bool IsSatisfiedBy(TestDTO o)
|
|
{
|
|
return o.LongNumber == _expected;
|
|
}
|
|
}
|
|
}
|