示例#1
0
        public void ApplyCommonSettingsUsesODataServerBehavior()
        {
            var testSubject = new ODataMessageWriterSettings();

            testSubject.EnableDefaultBehavior();
            MessageWriterBuilder.ApplyCommonSettings(testSubject, new Uri("http://www.example.com"), VersionUtil.Version4Dot0, this.dataServiceSimulator, this.responseMessageSimulator);
            testSubject.WriterBehavior.ShouldHave().AllProperties().EqualTo(ODataWriterBehavior.CreateODataServerBehavior());
        }