public void TestAcceptAllRevisions()
        {
            var localName    = "test_multi_pages.docx";
            var remoteName   = "TestAcceptAllRevisions.docx";
            var fullName     = Path.Combine(this.dataFolder, remoteName);
            var destFileName = Path.Combine(BaseTestOutPath, remoteName);

            this.StorageApi.PutCreate(fullName, null, null, File.ReadAllBytes(BaseTestContext.GetDataDir(BaseTestContext.CommonFolder) + localName));

            var request = new AcceptAllRevisionsRequest(remoteName, this.dataFolder, destFileName: destFileName);
            var actual  = this.WordsApi.AcceptAllRevisions(request);

            Assert.AreEqual(200, actual.Code);
        }
    public void ExampleAcceptAllRevisions()
    {
        var wordsApi = new WordsApi(config);
        var fileName = "test_doc.docx";

        // Upload original document to cloud storage.
        using var fileContentStream = File.OpenRead(fileName);
        var uploadFileRequest = new UploadFileRequest(fileContentStream, fileName);

        wordsApi.UploadFile(uploadFileRequest);

        // Calls AcceptAllRevisions method for document in cloud.
        var request = new AcceptAllRevisionsRequest(fileName);

        wordsApi.AcceptAllRevisions(request);
    }
        public void TestAcceptAllRevisions()
        {
            string remoteFileName = "TestAcceptAllRevisions.docx";

            this.UploadFileToStorage(
                remoteDataFolder + "/" + remoteFileName,
                null,
                null,
                File.ReadAllBytes(LocalTestDataFolder + localFile)
                );

            var request = new AcceptAllRevisionsRequest(
                name: remoteFileName,
                folder: remoteDataFolder,
                destFileName: BaseTestOutPath + "/" + remoteFileName
                );
            var actual = this.WordsApi.AcceptAllRevisions(request);

            Assert.NotNull(actual.Result);
            Assert.NotNull(actual.Result.Dest);
        }