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);
            Assert.That(results.Count(), Is.EqualTo(3));
        }
        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);
            Assert.That(results.Count(), Is.EqualTo(3));
        }