Пример #1
0
 public Locating_an_existing_saga()
 {
     _provider = new SQLiteSessionFactoryProvider(false, typeof(SimpleSagaMap));
     _sessionFactory = _provider.GetSessionFactory();
     _sagaRepository = new Lazy<ISagaRepository<SimpleSaga>>(() => new NHibernateSagaRepository<SimpleSaga>(_sessionFactory));
 }
Пример #2
0
 public Locating_an_existing_saga()
 {
     _provider       = new SQLiteSessionFactoryProvider(false, typeof(SimpleSagaMap));
     _sessionFactory = _provider.GetSessionFactory();
     _sagaRepository = new Lazy <ISagaRepository <SimpleSaga> >(() => new NHibernateSagaRepository <SimpleSaga>(_sessionFactory));
 }