public void Execute_Should_Create_Its_Own_UnitOfWork()
        {
            int result = _repo.Execute("some-string-five");

            result.Should().Be(5);
            _repo.UnitOfWork.Should().BeNull();
            _uowDisposed.Should().BeTrue();
        }
        public void Unopened_UnitOfWork_Throws_Exception()
        {
            IConnectionRepo repo = new FakeRepository(_provider.Object);

            repo.UnitOfWork = _unitOfWork.Object;

            _unitOfWork.Setup(uow => uow.NumberOfRepos).Returns(1);

            Assert.Throws <Exception>(() => repo.Execute("sql"));
        }