private void TestTableJsonSample(JsonSampleInfo sampleInfo)
        {
            Core.Models.Table tableIn =
                Core.DataFactoryManagementClient.DeserializeInternalTableJson(sampleInfo.Json);

            Core.Models.Table tableOut =
                Core.DataFactoryManagementClient.DeserializeInternalTableJson(sampleInfo.Json);

            var expectedActivityConfiguration = new ActivityConfiguration()
            {
                Inputs = new Collection <ResolvedTable>()
                {
                    new ResolvedTable()
                    {
                        Table = this.tableConverter.ToWrapperType(tableIn),
                    },
                },
                Outputs = new Collection <ResolvedTable>()
                {
                    new ResolvedTable()
                    {
                        Table = this.tableConverter.ToWrapperType(tableOut),
                    },
                },
            };

            this.TestJsonSample(string.Concat("{ \"inputs\" : [{ \"table\":", sampleInfo.Json, "}], \"outputs\" : [{ \"table\":", sampleInfo.Json, "}]}"), expectedActivityConfiguration);
        }
示例#2
0
        private void TestTableJsonSample(JsonSampleInfo sampleInfo)
        {
            Core.Models.Table table =
                Core.DataFactoryManagementClient.DeserializeInternalTableJson(sampleInfo.Json);

            var expectedDataSet = new DataSet()
            {
                Table = this.tableConverter.ToWrapperType(table)
            };

            this.TestDataSetJsonSample("table", expectedDataSet, sampleInfo);
        }