public UnitOfWork(ISessionFactory sessionFactory)
 {
     session          = sessionFactory.OpenSession();
     tx               = session.BeginTransaction();
     offerRepository  = new OfferRepository(session);
     policyRepository = new PolicyRepository(session);
 }
 public UnitOfWork(ISession session)
 {
     this.session     = session;
     tx               = session.BeginTransaction();
     offerRepository  = new OfferRepository(session);
     policyRepository = new PolicyRepository(session);
 }