コード例 #1
0
 public void Setup()
 {
     _scope = new DisposableObject();
     InjectionContext.Current = _scope;
     _repo = _kernel.Get<StuffLibraryRepo>();
     _unitOfWork = _kernel.Get<RollbackUnitOfWork>();
 }
コード例 #2
0
 public void TearDown()
 {
     _unitOfWork.Rollback();
     _scope.Dispose();
     _scope = null;
 }