Exemplo n.º 1
0
 public void Setup()
 {
     _nHibernateService = Substitute.For <INHibernateService>();
     _session           = Substitute.For <ISession>();
     _nHibernateService.OpenSession().Returns(_session);
     _sut = new TransactionService(_nHibernateService);
 }
Exemplo n.º 2
0
 public HoldingsService(INHibernateService nHibernateService,
                        IIexCloudService iexCloudService)
 {
     _nHibernateService = nHibernateService;
     _session           = _nHibernateService.OpenSession();
     _iexCloudService   = iexCloudService;
     _path = Path.GetFullPath(ToString());
 }
Exemplo n.º 3
0
 public void Setup()
 {
     _nHibernateService = Substitute.For <INHibernateService>();
     _iexCloudService   = Substitute.For <IIexCloudService>();
     _session           = Substitute.For <ISession>();
     _nHibernateService.OpenSession().Returns(_session);
     _sut = new HoldingsService(_nHibernateService, _iexCloudService);
 }
Exemplo n.º 4
0
 public TransactionService(INHibernateService nHibernateService)
 {
     _nHibernateService = nHibernateService;
     _session           = _nHibernateService.OpenSession();
     _path = Path.GetFullPath(ToString());
 }
Exemplo n.º 5
0
 public ComponentRepository(INHibernateService nhs)
 {
     _session = nhs.OpenSession();
 }
Exemplo n.º 6
0
 public ScoreRepository(INHibernateService nhs)
 {
     _session = nhs.OpenSession();
 }