Beispiel #1
0
        public void TemplateInput()
        {
            PostSlidesPipelineRequest request = new PostSlidesPipelineRequest
            {
                Pipeline = new Pipeline
                {
                    Files = new FileInfo[]
                    {
                        TestUtils.GetLocalFile("TemplatingCVDataWithBase64.xml", "text/xml"),
                        TestUtils.GetLocalFile("TemplateCV.pptx", "application/vnd.openxmlformats-officedocument.presentationml.presentation")
                    },
                    Input = new Input
                    {
                        TemplateData = new RequestInputFile {
                            Type = InputFileType.Request, Index = 0
                        },
                        Template = new RequestInputFile {
                            Type = InputFileType.Request, Index = 1
                        }
                    },
                    Tasks = new System.Collections.Generic.List <Task>
                    {
                        new Save {
                            Format = ExportFormat.Pptx, Output = new ResponseOutputFile {
                                Type = OutputFileType.Response
                            }
                        }
                    }
                }
            };
            DocumentApi api      = new DocumentApi(TestUtils.Configuration);
            Stream      response = api.PostSlidesPipeline(request);

            Assert.IsNotNull(response);
        }