Exemplo n.º 1
0
        public override void establish_context()
        {
            session = MockRepository.GenerateStub <ISession>();
            session.Stub(x => x.BeginTransaction()).Return(MockRepository.GenerateStub <ITransaction>());

            comparer = MockRepository.GenerateStub <IEqualityComparer>();
            sut      = new InspectablePersistenceSpecification <T>(session, comparer);
        }
        public override void establish_context()
        {
            session = A.Fake <ISession>();
            A.CallTo(() => session.BeginTransaction()).Returns(A.Fake <ITransaction>());

            comparer = A.Fake <IEqualityComparer>();
            sut      = new InspectablePersistenceSpecification <T>(session, comparer);
        }