protected BaseDbContextUnitOfWork(
     IContextService <TContext> contextService,
     IContextFlushService <TContext> contextFlushService)
 {
     _contextService      = contextService;
     _contextFlushService = contextFlushService;
 }
        public void SetUp()
        {
            _fixture = new CustomAutoFixture();

            _context = new DbContext_Fake();

            _contextService = _fixture.Freeze <IContextService <DbContext_Fake> >();
            _contextService.HasCurrentContext().Returns(false);
            _contextService.InitContext().Returns(_context);
            _contextService.GetCurrentContext().Returns(_context);

            _contextFlushService = _fixture.Freeze <IContextFlushService <DbContext_Fake> >();

            _sut = CreateSut(_transactionType);
        }
 public TransactionScopeUnitOfWork(
     IContextService <TContext> contextService,
     IContextFlushService <TContext> contextFlushService)
     : base(contextService, contextFlushService)
 {
 }