public static void GetAll_Returns_CorrectAmountWithoutJoinsAndIsNotIEntity()
        {
            var repo = new NewRepository(Factory);
            IEnumerable <New> results = null;

            Assert.DoesNotThrow(() => results = repo.GetAll(Connection));
            Assert.That(results, Is.Not.Null);
            Assert.That(results, Is.Not.Empty);
            results.Should().HaveCount(x => x > 0);
        }
        public static void GetAll_Returns_CorrectAmountWithoutJoinsWithUnitOfWorkAndIsNotIEntity()
        {
            var repo = new NewRepository(Factory);
            IEnumerable <New> results = null;

            using (var uow = Connection.UnitOfWork(IsolationLevel.Serializable))
            {
                Assert.DoesNotThrow(() => results = repo.GetAll(uow));
            }
            Assert.That(results, Is.Not.Null);
            Assert.That(results, Is.Not.Empty);
            results.Should().HaveCount(x => x > 0);
        }