SamplingPointDeleteAsync() public méthode

See INfieldSurveysService.SamplingPointDeleteAsync
public SamplingPointDeleteAsync ( string surveyId, Nfield.Models.SamplingPoint samplingPoint ) : System.Threading.Tasks.Task
surveyId string
samplingPoint Nfield.Models.SamplingPoint
Résultat System.Threading.Tasks.Task
        public void TestSamplingPointRemoveAsync_ServerRemovedSamplingPoint_DoesNotThrow()
        {
            const string samplingPointId = "SamplingPointId";
            const string surveyId = "SurveyId";
            var samplingPoint = new SamplingPoint
            {
                SamplingPointId = samplingPointId
            };
            var mockedNfieldConnection = new Mock<INfieldConnectionClient>();
            var mockedHttpClient = CreateHttpClientMock(mockedNfieldConnection);
            mockedHttpClient
                .Setup(client => client.DeleteAsync(string.Format("{0}surveys/{1}/samplingpoints/{2}", ServiceAddress, surveyId,
                                samplingPointId)))
                .Returns(CreateTask(HttpStatusCode.OK));

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

            Assert.DoesNotThrow(() => target.SamplingPointDeleteAsync(surveyId, samplingPoint).Wait());
        }
 public void TestSamplingPointRemoveAsync_SamplingPointIdIsNull_ThrowsArgumentNullException()
 {
     var target = new NfieldSurveysService();
     Assert.Throws<ArgumentNullException>(
         () =>
         {
             try
             {
                 target.SamplingPointDeleteAsync("", null).Wait();
             }
             catch (AggregateException ex)
             {
                 throw ex.InnerException;
             }
         }
         );
 }