public object Any(MetadataTest request) { return new MetadataTestResponse { Id = request.Id, Results = new List<MetadataTestChild> { new MetadataTestChild { Name = "foo", Results = new List<MetadataTestNestedChild> { new MetadataTestNestedChild { Name = "bar" }, } } } }; }
public void ConcurrencyPropertiesAnnotation_NotSerializedToMetadata(string entitySetName) { // Arrange ODataConventionModelBuilder builder = ODataConventionModelBuilderFactory.Create(); builder.EntitySet <TypeWithoutConcurrencyProperties>("WithoutCP"); builder.EntitySet <TypeWithConcurrencyProperties>("WithCP"); IEdmModel model = builder.GetEdmModel(); string originalMetadata = MetadataTest.GetCSDL(model); IEdmEntitySet entitySet = model.EntityContainer.FindEntitySet(entitySetName); // Act EdmLibHelpers.GetConcurrencyProperties(model, entitySet); string actualMetadata = MetadataTest.GetCSDL(model); // Assert Assert.Equal(originalMetadata, actualMetadata); }
public object Any(MetadataTest request) { return(new MetadataTestResponse { Id = request.Id, Results = new List <MetadataTestChild> { new MetadataTestChild { Name = "foo", Results = new List <MetadataTestNestedChild> { new MetadataTestNestedChild { Name = "bar" }, } } } }); }