public void TestSamplingPointImageDeleteAsync_ServerAcceptsDelete_ReturnsNoError() { const string surveyId = "SurveyId"; const string samplingPointId = "SamplingPointId"; var mockedNfieldConnection = new Mock <INfieldConnectionClient>(); var mockedHttpClient = CreateHttpClientMock(mockedNfieldConnection); mockedHttpClient.Setup(client => client.DeleteAsync(It.IsAny <string>())) .Returns(CreateTask(HttpStatusCode.NoContent)); var target = new NfieldSurveysService(); target.InitializeNfieldConnection(mockedNfieldConnection.Object); target.SamplingPointImageDeleteAsync(surveyId, samplingPointId).Wait(); }