public void TestPostPageReplaceTextList() { PdfApi target = new PdfApi(APIKEY, APPSID, BASEPATH); StorageApi storageApi = new StorageApi(APIKEY, APPSID, BASEPATH); string name = "test.pdf"; int? pageNumber = 1; string storage = null; string folder = null; Com.Aspose.PDF.Model.TextReplaceListRequest body = new Com.Aspose.PDF.Model.TextReplaceListRequest(); Com.Aspose.PDF.Model.TextReplace tr = new Com.Aspose.PDF.Model.TextReplace(); tr.NewValue = "This will be the new text"; body.TextReplaces = new System.Collections.Generic.List<Com.Aspose.PDF.Model.TextReplace> { tr }; storageApi.PutCreate(name, null, null, System.IO.File.ReadAllBytes("\\temp\\pdf\\resources\\" + name)); Com.Aspose.PDF.Model.PageTextReplaceResponse actual; actual = target.PostPageReplaceTextList(name, pageNumber, storage, folder, body); Assert.AreEqual("200", actual.Code); Assert.IsInstanceOfType(new Com.Aspose.PDF.Model.PageTextReplaceResponse(), actual.GetType()); }