Exemple #1
0
        public void ModifyRequest()
        {
            var options = new InsertOptions
            {
                AllowUnknownFields = true
            };
            TableDataInsertAllRequest request = new TableDataInsertAllRequest();

            options.ModifyRequest(request);
            Assert.Equal(true, request.IgnoreUnknownValues);
        }
        public void ModifyRequest()
        {
            var options = new InsertOptions
            {
                AllowUnknownFields = true,
                SkipInvalidRows    = true,
                TemplateSuffix     = "fromTemplate"
            };
            TableDataInsertAllRequest request = new TableDataInsertAllRequest();

            options.ModifyRequest(request);
            Assert.Equal(true, request.IgnoreUnknownValues);
            Assert.Equal(true, request.SkipInvalidRows);
            Assert.Equal("fromTemplate", request.TemplateSuffix);
        }