Ejemplo n.º 1
0
        public void TestGetDocumentDrawingObjectByIndex()
        {
            var localName   = "test_multi_pages.docx";
            var remoteName  = "TestGetDocumentDrawingObjectByIndex.docx";
            var fullName    = Path.Combine(this.dataFolder, remoteName);
            var objectIndex = 0;

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

            var request = new GetDocumentDrawingObjectByIndexRequest(remoteName, objectIndex, this.dataFolder, nodePath: "sections/0");
            DrawingObjectResponse actual = this.WordsApi.GetDocumentDrawingObjectByIndex(request);

            Assert.AreEqual(200, actual.Code);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="UpdateDrawingObjectOnlineResponse"/> class.
 /// </summary>
 /// <param name="model">The response model.</param>
 /// <param name="document">The document after modification.</param>
 public UpdateDrawingObjectOnlineResponse(DrawingObjectResponse model, System.IO.Stream document)
 {
     this.Model    = model;
     this.Document = document;
 }