public static async Task <Skier> InsertSkier(ConnectionFactory connectionFactory, Country country = null) { ISkierDao skierDao = new SkierDao(connectionFactory); country ??= await CountryDaoTests.InsertCountry(connectionFactory); Skier skier = new Skier { FirstName = "John", LastName = "Doe", Birthdate = DateTime.Today, Gender = Gender.Male, Country = country, PictureUrl = "http://fb.me/john.jpg", Archived = false, }; skier.Id = await skierDao.Insert(skier); return(skier); }