public async void GetCountry_WithNullOrEmptyCountryName_ReturnsNull(string countryName) { using (var database = new DatabaseWrapper()) { var dataAccess = new GenerateFromXmlDataAccess(database.WeeeContext); var result = await dataAccess.GetCountry(countryName); Assert.Null(result); } }
public async void GetCountry_ReturnsCorrectCountryForSpecifiedName(string countryName, string countryId) { using (var database = new DatabaseWrapper()) { var dataAccess = new GenerateFromXmlDataAccess(database.WeeeContext); var result = await dataAccess.GetCountry(countryName); Assert.Equal(Guid.Parse(countryId), result.Id); } }