Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public void GetAllCities_RedirectsToGetCitiesWithWildcard() { var c = new CitiesController(_appSettings.Object, _mapper.Object, _countryApiClient.Object, _weatherApiClient.Object, _cityRepository.Object); var result = c.GetAllCities(); Assert.IsInstanceOfType(result, typeof(RedirectToActionResult)); Assert.AreEqual("*", ((RedirectToActionResult)result).RouteValues["cityName"]); }