public void ValidateWhenUrlAndSettingAnnotationBuilderNotSetIndicatesMetadataHasNoAnnotation() { var metadataSimulator = new DataServiceProviderSimulator(); var dataServiceConfiguration = new DataServiceConfiguration(metadataSimulator); Assert.IsFalse(dataServiceConfiguration.HasAnnotations()); }
public void ValidateSettingAnnotationBuilderIndicatesMetadataHasAnnotation() { var metadataSimulator = new DataServiceProviderSimulator(); var dataServiceConfiguration = new DataServiceConfiguration(metadataSimulator); dataServiceConfiguration.AnnotationsBuilder = (IEdmModel model) => new IEdmModel[] { model }; Assert.IsTrue(dataServiceConfiguration.HasAnnotations()); }
public void ValidateGenerateKeyAsSegmentIndicatesMetadataHasAnnotation() { var metadataSimulator = new DataServiceProviderSimulator(); var dataServiceConfiguration = new DataServiceConfiguration(metadataSimulator); dataServiceConfiguration.DataServiceBehavior.UrlKeyDelimiter = DataServiceUrlKeyDelimiter.Slash; Assert.IsTrue(dataServiceConfiguration.HasAnnotations()); }