/// <summary> /// Sends a POST to '/api/automatedtest/{testId}/assignments' /// </summary> /// <param name="testId">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 CreateAssignmentForAutomatedTest(string testId, CreateOrUpdateAutomatedTestAssignment model, string expand = null) { return new RestOperation("POST", "api/automatedtest/" + testId + "/assignments") { Content = model, QueryParams = { {"$expand", expand}, } }; }
/// <summary> /// Sends a PUT to '/api/automatedtestassignment/{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 UpdateAutomatedTestAssignment(string id, CreateOrUpdateAutomatedTestAssignment model, string expand = null) { return new RestOperation("PUT", "api/automatedtestassignment/" + id + "") { Content = model, QueryParams = { {"$expand", expand}, } }; }
partial void CopyExtraPropertiesToClone(CreateOrUpdateAutomatedTestAssignment clone, bool includeLocalProperties);
public CreateOrUpdateAutomatedTestAssignment Clone(bool includeLocalProperties) { var c = new CreateOrUpdateAutomatedTestAssignment { AssignedToId = AssignedToId, AutomatedTestId = AutomatedTestId, Id = Id, OrderNumber = OrderNumber, PackageId = PackageId, }; CopyExtraPropertiesToClone(c, includeLocalProperties); return c; }
/// <summary> /// Sends a POST to '/api/automatedtestassignments' (asynchronous) /// </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 async Task<AutomatedTestAssignment> CreateAutomatedTestAssignmentAsync(CreateOrUpdateAutomatedTestAssignment model, string expand = null) { var operation = Operations.CreateAutomatedTestAssignment(model, expand); var response = await _client.SendAsync(operation.BuildRequest(_client)); EnsureSuccess(response); var result = await response.Content.ReadAsAsync<AutomatedTestAssignment>(); return result; }
/// <summary> /// Sends a PUT to '/api/automatedtestassignment/{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 virtual AutomatedTestAssignment UpdateAutomatedTestAssignment(string id, CreateOrUpdateAutomatedTestAssignment model, string expand = null) { var operation = Operations.UpdateAutomatedTestAssignment(id, model, expand); var response = _client.SendAsync(operation.BuildRequest(_client)).Result; EnsureSuccess(response); var result = response.Content.ReadAsAsync<AutomatedTestAssignment>().Result; return result; }