コード例 #1
0
 /// <summary>
 /// Sends a PUT to '/api/automatedtest/{id}'
 /// </summary>
 /// <param name="id">a path parameter (no description)</param>
 /// <param name="model">a body parameter (no description)</param>
 /// <param name="expand">a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.)</param>
 /// <returns></returns>
 public static RestOperation UpdateAutomatedTest(string id, CreateOrUpdateAutomatedTest model, string expand = null)
 {
     return new RestOperation("PUT", "api/automatedtest/" + id + "")
         {
             Content = model,                    QueryParams =
                 {
                      {"$expand", expand},
                 }
         };
 }
コード例 #2
0
partial         void CopyExtraPropertiesToClone(CreateOrUpdateAutomatedTest clone, bool includeLocalProperties);
コード例 #3
0
		/// <summary>
        /// Sends a PUT to '/api/automatedtest/{id}'  (asynchronous)
        /// </summary>
        /// <param name="id">a path parameter (no description)</param>
        /// <param name="model">a body parameter (no description)</param>
        /// <param name="expand">a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.)</param>
        /// <returns></returns>
        public virtual async Task<AutomatedTest> UpdateAutomatedTestAsync(string id, CreateOrUpdateAutomatedTest model, string expand = null)
        {
            var operation = Operations.UpdateAutomatedTest(id, model, expand);
			var response = await _client.SendAsync(operation.BuildRequest(_client));
			EnsureSuccess(response);
			var result = await response.Content.ReadAsAsync<AutomatedTest>();
			return result;
						
		}
コード例 #4
0
 public CreateOrUpdateAutomatedTest Clone(bool includeLocalProperties)
 {
     var c = new CreateOrUpdateAutomatedTest
             {
                 AssignedToId = AssignedToId,
                 Configuration = Configuration,
                 Id = Id,
                 Name = Name,
                 OrderNumber = OrderNumber,
                 PackageId = PackageId,
                 Type = Type,
             };
     CopyExtraPropertiesToClone(c, includeLocalProperties);
     return c;
 }
コード例 #5
0
        /// <summary>
        /// Sends a POST to '/api/automatedtests'
        /// </summary>
        /// <param name="model">a body parameter (no description)</param>
        /// <param name="expand">a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.)</param>
        /// <returns></returns>
        public virtual AutomatedTest CreateAutomatedTest(CreateOrUpdateAutomatedTest model, string expand = null)
        {
            var operation = Operations.CreateAutomatedTest(model, expand);
			var response = _client.SendAsync(operation.BuildRequest(_client)).Result;
			EnsureSuccess(response);
			var result = response.Content.ReadAsAsync<AutomatedTest>().Result;
			return result;
			
		}