public async void TestFindAll() { ConnectionFactory connectionFactory = new ConnectionFactory(Environment.Testing); ICountryDao countryDao = new CountryDao(connectionFactory); foreach (var _ in await countryDao.FindAll()) { Assert.True(false, "FindAll should return an empty collection"); } Country country = new Country { Code = "AT" }; await countryDao.Insert(country); foreach (var _ in await countryDao.FindAll()) { return; } Assert.True(false, "FindAll should return a non-empty collection"); }