public void InjectMetadataBuilderShouldSetBuilderOnEntry()
        {
            var entry   = new ODataEntry();
            var builder = new TestEntityMetadataBuilder(entry);

            testSubject.InjectMetadataBuilder(entry, builder);
            entry.MetadataBuilder.Should().BeSameAs(builder);
        }
예제 #2
0
        public void InjectMetadataBuilderShouldSetBuilderOnEntry()
        {
            var entry   = new ODataResource();
            var builder = new TestEntityMetadataBuilder(entry);

            testSubject.InjectMetadataBuilder(entry, builder);
            Assert.Same(builder, entry.MetadataBuilder);
        }