public void Validate_InvalidLanguage()
        {
            var text = "I had a wonderful experience! The rooms were wonderful and the staff were helpful.";
            var doc  = new SentimentDocument()
            {
                Id = "TEST001", Text = text, Language = "ja"
            };
            var request = new SentimentRequest();

            request.Documents.Add(doc);
            request.Validate();
        }
 public async Task <KeyPhraseSentimentResponse> GetKeyPhrasesAsync(SentimentRequest request)
 {
     request.Validate();
     return(JsonConvert.DeserializeObject <KeyPhraseSentimentResponse>(await this.SendPostAsync(keyPhraseUrl, JsonConvert.SerializeObject((object)request))));
 }