Пример #1
0
        public void TranslationBatchCreateGetTest()
        {
            BatchCreate batchCreate = new BatchCreate();

            batchCreate = translationApi.TranslationBatchCreateGet(null);
            Assert.IsNotNull(batchCreate.BatchId);
        }
Пример #2
0
        public void TranslationBatchStatusGetTest()
        {
            BatchCreate batchCreate = new BatchCreate();

            batchCreate = translationApi.TranslationBatchCreateGet(null); BatchStatus batchStatus = new BatchStatus();
            batchStatus = translationApi.TranslationBatchStatusGet(batchCreate.BatchId, null);
            Assert.IsNotNull(batchStatus.Requests);
        }
Пример #3
0
        public void TranslationBatchCloseGetTest()
        {
            BatchCreate batchCreate = new BatchCreate();

            batchCreate = translationApi.TranslationBatchCreateGet(null);
            BatchClose batchClose = new BatchClose();

            batchClose = translationApi.TranslationBatchCloseGet(batchCreate.BatchId, null);
            Assert.IsNotNull(batchClose.Status);
        }
Пример #4
0
        public void TranslationBatchCreateGetAsyncTest()
        {
            BatchCreate batchCreate = new BatchCreate();

            Task.Run(async() =>
            {
                batchCreate = await translationApi.TranslationBatchCreateGetAsync(null);
            }).Wait();
            Assert.IsNotNull(batchCreate.BatchId);
        }
Пример #5
0
        public void TranslationBatchStatusGetAsyncTest()
        {
            BatchCreate batchCreate = new BatchCreate();

            batchCreate = translationApi.TranslationBatchCreateGet(null); BatchStatus batchStatus = new BatchStatus();
            Task.Run(async() =>
            {
                batchStatus = await translationApi.TranslationBatchStatusGetAsync(batchCreate.BatchId, null);
            }).Wait();
            Assert.IsNotNull(batchStatus.Requests);
        }
Пример #6
0
        public void TranslationBatchCancelGetAsyncTest()
        {
            BatchCreate batchCreate = new BatchCreate();

            batchCreate = translationApi.TranslationBatchCreateGet(null);
            BatchCancel batchCancel = new BatchCancel();

            Task.Run(async() =>
            {
                batchCancel = await translationApi.TranslationBatchCancelGetAsync(batchCreate.BatchId, null);
            }).Wait();
            Assert.IsNotNull(batchCancel.Status);
        }