public void Should_Create_Transaction_Successfuly()
 {
     using (var unitOfWork = new DefaultUnitOfWork(Container.Resolve<ISessionFactoryProvider>()))
     {
         Assert.IsFalse(unitOfWork.IsActiveTransaction);
         unitOfWork.BeginTransaction();
         Assert.IsTrue(unitOfWork.IsActiveTransaction);
     }
 }
 public void Should_Throw_Exception_Creating_Multiple_Transactions()
 {
     using (var unitOfWork = new DefaultUnitOfWork(Container.Resolve<ISessionFactoryProvider>()))
     {
         unitOfWork.BeginTransaction();
         unitOfWork.BeginTransaction();
     }
 }