Nfield.Services.Implementation.NfieldLanguagesService.RemoveAsync C# (CSharp) Method

RemoveAsync() public method

See INfieldLanguagesService.RemoveAsync
public RemoveAsync ( string surveyId, Language language ) : System.Threading.Tasks.Task
surveyId string
language Language
return System.Threading.Tasks.Task
        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();
        }

Usage Example

 public void TestRemoveAsync_SurveyIdIsNull_Throws()
 {
     var target = new NfieldLanguagesService();
     Assert.Throws<ArgumentNullException>(() => UnwrapAggregateException(target.RemoveAsync(null, new Language())));
 }
All Usage Examples Of Nfield.Services.Implementation.NfieldLanguagesService::RemoveAsync