public void IsSatisfiedBy_ExistsInterview_True() { Stubs.Initialize(); Stubs.InterviewRepository.Add(new Interview()); Stubs.UnitOfWork.Commit(); var target = new InterviewExistsSpecification(); Assert.IsTrue(target.IsSatisfiedBy(new Interview(1))); }
public void IsSatisfiedBy_NonExistsInterview_False() { var target = new InterviewExistsSpecification(); Assert.IsFalse(target.IsSatisfiedBy(new Interview())); }