Exemplo n.º 1
0
        public void dispose_repository_disposed()
        {
            var repo = _unitofwork.For <FakeEntity>();
            var poco = _unitofwork.Poco <FakePoco>();

            _repository.Setup(x => x.Dispose());
            _pocoRepository.Setup(x => x.Dispose());

            _unitofwork.Dispose();

            _repository.Verify(x => x.Dispose(), Moq.Times.Once);
            _pocoRepository.Verify(x => x.Dispose(), Moq.Times.Once);
        }
Exemplo n.º 2
0
        public void Dispose_repository_is_disposed()
        {
            var repo = _uow.For <_AggregateStub <Guid> >();

            _uow.Dispose();
            _repository.Verify(x => x.Dispose(), Moq.Times.Once);
        }