Ejemplo n.º 1
0
        public void GivenTheReqresServiceIsRunningAndAPUTRequestIsMadeToTheEndpoint(string resource)
        {
            Dictionary <string, string> dataBody = new Dictionary <string, string>(); //Alternative method of tramsitting data

            dataBody.Add("name", "morpheus");                                         //Property name and value pairs are stored in Dictionary collection
            dataBody.Add("job", "zion resident");
            string modDataBody = JsonConvert.SerializeObject(dataBody);               //dataBody is then serlialized using Json Convert for transmission

            _httpRequestMethods.PutMethod(resource, modDataBody);
        }