public void Setup() { _scope = new DisposableObject(); InjectionContext.Current = _scope; _repo = _kernel.Get<StuffLibraryRepo>(); _unitOfWork = _kernel.Get<RollbackUnitOfWork>(); }
public void TearDown() { _unitOfWork.Rollback(); _scope.Dispose(); _scope = null; }