Example #1
0
        public void TranslationTranslateGetAsyncTest()
        {
            TranslationResponse response = new TranslationResponse();
            List <string>       sample   = new List <string>();

            sample.Add("this is a test");
            Task.Run(async() =>
            {
                response = await translationApi.TranslationTranslateGetAsync(sample, "en", "fr", null, null, true, false, null, null, false, null, null, false, null, null);
            }).Wait();

            Assert.IsNotNull(response.Outputs[0]);
        }