public UnitOfWorkFactory(IRegistry registry, ISessionFactory factory) { _registry = registry; _factory = factory; }