public void Flush_Calls_Underlying_ISession_Flush() { var mockSession = MockRepository.GenerateMock <ISession>(); mockSession.Expect(x => x.Flush()); var unitOfWork = new NHibernateUnitOfWork(mockSession); unitOfWork.Flush(); mockSession.VerifyAllExpectations(); }
public void Flush_Calls_Underlying_ISession_Flush() { var mockSession = MockRepository.GenerateMock<ISession>(); mockSession.Expect(x => x.Flush()); var unitOfWork = new NHibernateUnitOfWork(mockSession); unitOfWork.Flush(); mockSession.VerifyAllExpectations(); }