public void CannotExtractAsDatastoreBackup()
        {
            var options = new CreateExtractJobOptions {
                DestinationFormat = FileFormat.DatastoreBackup
            };
            JobConfigurationExtract extract = new JobConfigurationExtract();

            Assert.Throws <ArgumentException>(() => options.ModifyRequest(extract));
        }
        public void ModifyRequest()
        {
            var options = new CreateExtractJobOptions
            {
                Compression       = CompressionType.Gzip,
                PrintHeader       = false,
                DestinationFormat = FileFormat.NewlineDelimitedJson,
                // May not make any sense for JSON, but we don't validate...
                FieldDelimiter = "gronkle"
            };
            JobConfigurationExtract extract = new JobConfigurationExtract();

            options.ModifyRequest(extract);
            Assert.Equal("GZIP", extract.Compression);
            Assert.Equal(false, extract.PrintHeader);
            Assert.Equal("NEWLINE_DELIMITED_JSON", extract.DestinationFormat);
            Assert.Equal("gronkle", extract.FieldDelimiter);
        }