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.
Zero/ZeroLevel.UnitTests/Models/Specifications/SummarySpecification.cs

22 lines
494 B

using ZeroLevel.Specification;
using ZeroSpecificationPatternsTest.Models;
namespace ZeroSpecificationPatternsTest.Specifications
{
public class SummarySpecification :
BaseSpecification<TestDTO>
{
private readonly string _expected;
public SummarySpecification(string expected)
{
_expected = expected;
}
public override bool IsSatisfiedBy(TestDTO o)
{
return o.Summary == _expected;
}
}
}

Powered by TurnKey Linux.