public void IsSatisfiedBy_ExistsComment_True() { Stubs.Initialize(); Stubs.CommentRepository.Add(new Comment()); Stubs.UnitOfWork.Commit(); var target = new CommentExistsSpecification(); Assert.IsTrue(target.IsSatisfiedBy(new Comment(1))); }
public void IsSatisfiedBy_NonExistsComment_False() { var target = new CommentExistsSpecification(); Assert.IsFalse(target.IsSatisfiedBy(new Comment())); }