RemoveAsync() public méthode

See INfieldInterviewersService.RemoveAsync
public RemoveAsync ( Interviewer interviewer ) : System.Threading.Tasks.Task
interviewer Nfield.Models.Interviewer
Résultat System.Threading.Tasks.Task
        public void TestRemoveAsync_ServerRemovedInterviewer_DoesNotThrow()
        {
            const string InterviewerId = "Interviewer X";
            var interviewer = new Interviewer { InterviewerId = InterviewerId };
            var mockedNfieldConnection = new Mock<INfieldConnectionClient>();
            var mockedHttpClient = CreateHttpClientMock(mockedNfieldConnection);
            mockedHttpClient
                .Setup(client => client.DeleteAsync(ServiceAddress + "interviewers/" + InterviewerId))
                .Returns(CreateTask(HttpStatusCode.OK));

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

            Assert.DoesNotThrow(() => target.RemoveAsync(interviewer).Wait());
        }
 public void TestRemoveAsync_InterviewerIsNull_ThrowsArgumentNullException()
 {
     var target = new NfieldInterviewersService();
     Assert.Throws<ArgumentNullException>(() => UnwrapAggregateException(target.RemoveAsync(null)));
 }