示例#1
0
        public ActionResult Delete(string city_name)
        {
            var city = _cityRepository.GetByName(city_name);

            _temperatureRepository.Remove(city.TemperaturesExt(_configuration));
            _cityRepository.Remove(city);
            return(Ok());
        }
示例#2
0
        public void RemoverTemperaturaSemCidade()
        {
            var repo = new TemperatureRepository(config);

            repo.Remove((TestContext.Properties["TemperaturaSemCidade"] as Temperature));

            // Assert - Expects exception
        }