public static void GetAllAsyncITestSession_Returns_CorrectAmountCreatingASessionItself()
        {
            var repo = new BraveRepository(Factory);
            IEnumerable <Brave> results = null;

            Assert.DoesNotThrowAsync(async() => results = await repo.GetAllAsync <ITestSession>());
            Assert.That(results, Is.Not.Null);
            Assert.That(results, Is.Not.Empty);
            Assert.That(results.Count(), Is.EqualTo(3));
        }
        public static void GetAll_Returns_CorrectAmountWithUnitOfWork()
        {
            var repo = new BraveRepository(Factory);
            IEnumerable <Brave> results = null;

            using (var uow = Connection.UnitOfWork(IsolationLevel.Serializable))
            {
                Assert.DoesNotThrowAsync(async() => results = await repo.GetAllAsync(uow));
            }
            Assert.That(results, Is.Not.Null);
            Assert.That(results, Is.Not.Empty);
            Assert.That(results.Count(), Is.EqualTo(3));
        }