public Task RemoveAsync(string surveyId, Language language) { CheckSurveyId(surveyId); if (language == null) { throw new ArgumentNullException("language"); } return Client.DeleteAsync(LanguagesApi(surveyId, language.Id).AbsoluteUri) .FlattenExceptions(); }
public void TestRemoveAsync_SurveyIdIsNull_Throws() { var target = new NfieldLanguagesService(); Assert.Throws<ArgumentNullException>(() => UnwrapAggregateException(target.RemoveAsync(null, new Language()))); }