public ActionResult Delete(string city_name) { var city = _cityRepository.GetByName(city_name); _temperatureRepository.Remove(city.TemperaturesExt(_configuration)); _cityRepository.Remove(city); return(Ok()); }
public void RemoverTemperaturaSemCidade() { var repo = new TemperatureRepository(config); repo.Remove((TestContext.Properties["TemperaturaSemCidade"] as Temperature)); // Assert - Expects exception }