public void IsSatisfiedBy_ExistsNews_True() { Stubs.Initialize(); Stubs.NewsRepository.Add(new News()); Stubs.UnitOfWork.Commit(); var target = new NewsExistsSpecification(); Assert.IsTrue(target.IsSatisfiedBy(new News(1))); }
public void IsSatisfiedBy_NonExistsNews_False() { var target = new NewsExistsSpecification(); Assert.IsFalse(target.IsSatisfiedBy(new News())); }