public virtual async Task <bool> UpdateNotifyCharge(ActivityDto identifierDto) { string requestUri = string.Format("{0}/api/ChargeActivity/update", server); var content = GivenAHttpContent(identifierDto, requestUri); var result = await httpApiClient.PutAsync(requestUri, content); if (result.StatusCode == HttpStatusCode.OK) { return(true); } return(false); }
private static void valuesReturnForPut(IHttpApiClient client) { client.PutAsync(Arg.Any <string>(), Arg.Any <HttpContent>()).Returns(new HttpResponseMessage(HttpStatusCode.OK)); }