public void SetEndpointsContainer() { WeatherEndpoint = new WeatherEndpoint(); FindEndpoint = new FindEndpoint(); GroupEndpoint = new GroupEndpoint(); NonExistingEndpoint = new NonExistingEndpoint(); }
public void GetWeatherViaNonExistingEndpoint() { ByCityCountryRequest request = new ByCityCountryRequest("London"); CommonResponse expectedResponse = new CommonResponse(null, 404).SetMessage("Internal error"); Response response = NonExistingEndpoint.SendGetRequest(request).Execute().GetResponse(0); CommonResponse actualResponse = JsonConvert.DeserializeObject <CommonResponse>(response.ResponseBody); Comparator.CompareObjects(actualResponse, expectedResponse); }