Nfield.Services.Implementation.NfieldSamplingPointInterviewerAssignmentsService.UnassignAsync C# (CSharp) Method

UnassignAsync() public method

public UnassignAsync ( string surveyId, SamplingPointInterviewerAssignmentsModel model ) : System.Threading.Tasks.Task
surveyId string
model Nfield.Models.SamplingPointInterviewerAssignmentsModel
return System.Threading.Tasks.Task
        public Task UnassignAsync(string surveyId, SamplingPointInterviewerAssignmentsModel model)
        {
            CheckParameters(surveyId, model);

            var uri = AssignmentsApi(surveyId).AbsoluteUri;

            return Client.DeleteAsJsonAsync(uri, model).FlattenExceptions();
        }

Same methods

NfieldSamplingPointInterviewerAssignmentsService::UnassignAsync ( string surveyId, string samplingPointId, string interviewerId ) : System.Threading.Tasks.Task

Usage Example

 public void TestUnassignAsync_SurveyIdIsNull_Throws()
 {
     var target = new NfieldSamplingPointInterviewerAssignmentsService();
     Assert.Throws<ArgumentNullException>(() =>
         UnwrapAggregateException(target.UnassignAsync(null, SamplingPointId, InterviewerId)));
 }
All Usage Examples Of Nfield.Services.Implementation.NfieldSamplingPointInterviewerAssignmentsService::UnassignAsync