コード例 #1
0
        public void WhenI(string httpVerb)
        {
            HttpContent content = null;
            var         method  = GetHttpMethod(httpVerb);

            if (DataToSend != null)
            {
                content = new StringContent(JsonConvert.SerializeObject(DataToSend), System.Text.Encoding.UTF8, "application/json");
            }

            CurrentResponse = CurrentRequest.SendAsync(method, content).Result;
        }