public void SettingsShouldBeCopiedCorrectlyOnNewSettings()
 {
     CustomODataMessageReaderSettings settings = new CustomODataMessageReaderSettings();
     var copyOfSettings = new CustomODataMessageReaderSettings(settings);
     // Compare original and settings created from copy constructor without setting values
     this.CompareMessageReaderSettings(settings, copyOfSettings);
 }
 public void DefaultSettingsBaseTest()
 {
     CustomODataMessageReaderSettings settings = new CustomODataMessageReaderSettings();
     settings.CheckCharacters.Should().BeFalse();
     settings.EnableAtomMetadataReading.Should().BeFalse();
     settings.InstanceAnnotationFilter.Should().BeNull();
 }
        public void SettingsShouldBeCopiedCorrectlyOnNewSettings()
        {
            CustomODataMessageReaderSettings settings = new CustomODataMessageReaderSettings();
            var copyOfSettings = new CustomODataMessageReaderSettings(settings);

            // Compare original and settings created from copy constructor without setting values
            this.CompareMessageReaderSettings(settings, copyOfSettings);
        }
        public void DefaultSettingsBaseTest()
        {
            CustomODataMessageReaderSettings settings = new CustomODataMessageReaderSettings();

            settings.CheckCharacters.Should().BeFalse();
            settings.EnableAtomMetadataReading.Should().BeFalse();
            settings.InstanceAnnotationFilter.Should().BeNull();
        }
 public void ODataMessageReaderCopyConstructorTest()
 {
     CustomODataMessageReaderSettings settings = new CustomODataMessageReaderSettings();
     settings.CheckCharacters = true;
     settings.EnableAtomMetadataReading = true;
     settings.MessageQuotas.MaxPartsPerBatch = 100;
     settings.MessageQuotas.MaxOperationsPerChangeset = 200;
     settings.MessageQuotas.MaxNestingDepth = 20;
     settings.MessageQuotas.MaxReceivedMessageSize = 2000;
     settings.MessageQuotas.MaxEntityPropertyMappingsPerType = 30;
     settings.InstanceAnnotationFilter = (name) => name != null ? true : false;
     CustomODataMessageReaderSettings copyOfSettings = new CustomODataMessageReaderSettings(settings);
     this.CompareMessageReaderSettings(settings, copyOfSettings);
 }
        public void ODataMessageReaderCopyConstructorTest()
        {
            CustomODataMessageReaderSettings settings = new CustomODataMessageReaderSettings();

            settings.CheckCharacters                                = true;
            settings.EnableAtomMetadataReading                      = true;
            settings.MessageQuotas.MaxPartsPerBatch                 = 100;
            settings.MessageQuotas.MaxOperationsPerChangeset        = 200;
            settings.MessageQuotas.MaxNestingDepth                  = 20;
            settings.MessageQuotas.MaxReceivedMessageSize           = 2000;
            settings.MessageQuotas.MaxEntityPropertyMappingsPerType = 30;
            settings.InstanceAnnotationFilter                       = (name) => name != null ? true : false;
            CustomODataMessageReaderSettings copyOfSettings = new CustomODataMessageReaderSettings(settings);

            this.CompareMessageReaderSettings(settings, copyOfSettings);
        }
 public CustomODataMessageReaderSettings(CustomODataMessageReaderSettings other)
     : base(other)
 {
 }
 public CustomODataMessageReaderSettings(CustomODataMessageReaderSettings other)
     : base(other)
 {
 }