public void TranslationBatchCreateGetTest() { BatchCreate batchCreate = new BatchCreate(); batchCreate = translationApi.TranslationBatchCreateGet(null); Assert.IsNotNull(batchCreate.BatchId); }
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); }
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); }
public void TranslationBatchCreateGetAsyncTest() { BatchCreate batchCreate = new BatchCreate(); Task.Run(async() => { batchCreate = await translationApi.TranslationBatchCreateGetAsync(null); }).Wait(); Assert.IsNotNull(batchCreate.BatchId); }
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); }
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); }