public void TestReadmeCode() { var localName = "test_multi_pages.docx"; var pathToDocFile = BaseTestContext.GetDataDir(BaseTestContext.CommonFolder) + localName; var currenConfig = BaseTestContext.GetConfig(); var clientSecret = currenConfig.ClientSecret; var clientId = currenConfig.ClientId; var baseUrl = currenConfig.BaseUrl; // Start README example var config = new Configuration { ClientId = clientId, ClientSecret = clientSecret, ApiBaseUrl = baseUrl, }; var wordsApi = new WordsApi(config); using (var inputStream = new FileStream(pathToDocFile, FileMode.Open)) { var uploadFileRequest = new UploadFileRequest(inputStream, "fileStoredInCloud.doc"); wordsApi.UploadFile(uploadFileRequest); } var saveOptionsData = new SaveOptionsData { SaveFormat = "pdf", FileName = "destStoredInCloud.pdf" }; var request = new SaveAsRequest("fileStoredInCloud.doc", saveOptionsData); wordsApi.SaveAs(request); // End README example WriteCodeToReadme(); }