public void GetWeatherDataByCityIDTest(string endPoint, string key, string value)
        {
            //Arrange - Given
            RestManager.AddParameter(key, value);

            //Act - When
            RestManager.ExecuteRequest(endPoint, Method.GET);

            //Assert - Then
            Assert.AreEqual(HttpStatusCode.OK, RestManager.Status);
            var responseObjects = ToWeatherData(RestManager.ResponseContent);

            Assert.AreEqual(Convert.ToInt32(value), responseObjects.Id);
        }
        public void GetWeatherDataByGeoCoordinatesTest(string endPoint, int longitude, int latitude)
        {
            //Arrange - Given
            var queryStrings = new List <KeyValuePair <string, object> >();

            queryStrings.Add(new KeyValuePair <string, object>("lon", longitude));
            queryStrings.Add(new KeyValuePair <string, object>("lat", latitude));
            RestManager.AddQueryStrings(queryStrings);

            //Act - When
            RestManager.ExecuteRequest(endPoint, Method.GET);

            //Assert - Then
            Assert.AreEqual(HttpStatusCode.OK, RestManager.Status);
            var responseObjects = ToWeatherData(RestManager.ResponseContent);

            Assert.AreEqual(longitude, responseObjects.Coord.Lon);
            Assert.AreEqual(latitude, responseObjects.Coord.Lat);
        }
 public void WhenIExecuteTheAPICallOnTheEndpoint(string endPoint)
 {
     //Act
     RestManager.ExecuteRequest(endPoint, Method.GET);
 }