public void GetCity_ItemDoesntExistAndPOIisNotRequested_ReturnNotFoundResult() { var result = CityPoiController.GetCity(BadId, false); result.Should().BeOfType <NotFoundResult>(); }
public void GetCity_ItemExistAndPOIisNotRequested_ReturnCityWithNoPOIDTO() { var city = CityPoiItemBuilder.GenerateCity(); var cityDto = new CityWithNoPoidto { CityId = city.Id, Name = city.Name, Country = city.Country, Population = city.Population }; FakeCityRepository.GetCity(city.Id, false).Returns(city); var result = CityPoiController.GetCity(city.Id, false); result.Should().BeOfType <ObjectResult>().Which.Value.ShouldBeEquivalentTo(cityDto); }