public void FlushAndPauseShouldNotCloseTheSession() { NhConversation c = NewStartedConversation(); c.FlushAndPause(); AssertIsPaused(c.GetSession(sessions)); }
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)); }