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 void TestUnassignAsync_SurveyIdIsNull_Throws()
 {
     var target = new NfieldSamplingPointInterviewerAssignmentsService();
     Assert.Throws<ArgumentNullException>(() =>
         UnwrapAggregateException(target.UnassignAsync(null, SamplingPointId, InterviewerId)));
 }
        public void TestUnassignAsync_ServerAcceptsUnassign_ReturnsNoError()
        {
            var mockedNfieldConnection = new Mock<INfieldConnectionClient>();
            var mockedHttpClient = CreateHttpClientMock(mockedNfieldConnection);

            mockedHttpClient.Setup(client => client.DeleteAsync(It.IsAny<string>()))
                .Returns(CreateTask(HttpStatusCode.OK));

            var target = new NfieldSamplingPointInterviewerAssignmentsService();
            target.InitializeNfieldConnection(mockedNfieldConnection.Object);

            target.UnassignAsync(SurveyId, SamplingPointId, InterviewerId).Wait();

            mockedHttpClient.Verify(hc =>
            hc.DeleteAsync(
                It.Is<string>(url => url.EndsWith("Surveys/" + SurveyId + "/SamplingPoints/" + SamplingPointId + "/Assignments/" + InterviewerId))),
            Times.Once());
        }