public void IsSatisfiedBy_ExistsEvent_True() { Stubs.Initialize(); Stubs.EventRepository.Add(new Event()); Stubs.UnitOfWork.Commit(); var target = new EventExistsSpecification(); Assert.IsTrue(target.IsSatisfiedBy(new Event(1))); }
public void IsSatisfiedBy_NonExistsEvent_False() { var target = new EventExistsSpecification(); Assert.IsFalse(target.IsSatisfiedBy(new Event())); }