Beispiel #1
0
        public void FlushAndPauseShouldNotCloseTheSession()
        {
            NhConversation c = NewStartedConversation();

            c.FlushAndPause();
            AssertIsPaused(c.GetSession(sessions));
        }
Beispiel #2
0
        public void FlushAndPauseShouldFlushStartedUnitOfWork()
        {
            NhConversation c            = NewStartedConversation();
            ISession       s            = c.GetSession(sessions);
            var            persistedObj = new Silly3();

            s.Save(persistedObj);

            c.FlushAndPause();
            AssertExistsInDb(persistedObj);
            AssertIsPaused(c.GetSession(sessions));
        }