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.UrlConventions = DataServiceUrlConventions.KeyAsSegment;
     Assert.IsTrue(dataServiceConfiguration.HasAnnotations());
 }
 public void ValidateWhenUrlAndSettingAnnotationBuilderNotSetIndicatesMetadataHasNoAnnotation()
 {
     var metadataSimulator = new DataServiceProviderSimulator();
     var dataServiceConfiguration = new DataServiceConfiguration(metadataSimulator);
     Assert.IsFalse(dataServiceConfiguration.HasAnnotations());
 }