コード例 #1
0
        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)));
        }
コード例 #2
0
        public void IsSatisfiedBy_NonExistsEvent_False()
        {
            var target = new EventExistsSpecification();

            Assert.IsFalse(target.IsSatisfiedBy(new Event()));
        }