Beispiel #1
0
        public CreateResponseBody CreateService(CreateRequestBody createBodyModel)
        {
            createBodyModel.id    = base.id;
            createBodyModel.token = base.token;

            var requestBody = JsonHelper.SerializeJsonHandlingNullValues(createBodyModel);
            var response    = base.ApiClient.PostRequest(EndPoint.CreateService, base.Headers, requestBody);

            return(JsonHelper.TryParseJson <CreateResponseBody>(response.Content));
        }
        public void TestSetUp()
        {
            serviceHelper = new ServiceApiHelper();
            serviceHelper.Authorization(base.Client);

            createRequestBody
                = JsonHelper.DeserializeJson <CreateServiceBody>(PathTo.RequestBody.CreateServiceRequestBodyJson);

            [email protected]       = Data.title;
            [email protected] = Data.description;

            deleteRequestBody
                = JsonHelper.DeserializeJson <DeleteServiceBody>(PathTo.RequestBody.DeleteServiceRequestBodyJson);
        }