private List <OdcmVocabularyAnnotation> GetAnnotationsFromOneNoteSampleEntitySet(string entitySet)
        {
            IEdmModel     model           = SampleParsedEdmModel;
            IEdmEntitySet sampleEntitySet = model.FindEntityContainer("OneNoteApi").FindEntitySet(entitySet);

            return(ODataVocabularyReader.GetOdcmAnnotations(model, sampleEntitySet).ToList());
        }
        private List <OdcmVocabularyAnnotation> GetAnnotationsFromOneNoteSampleEntityContainer()
        {
            IEdmModel model           = SampleParsedEdmModel;
            var       sampleContainer = model.FindEntityContainer("OneNoteApi");

            return(ODataVocabularyReader.GetOdcmAnnotations(model, sampleContainer).ToList());
        }
        private void ConstantValueShouldRoundtrip(object originalValue, Func <object, IEdmValue> valuePredicate)
        {
            // Map our original value to an IEdmValue with the supplied predicate
            var iEdmValue = valuePredicate(originalValue);
            var result    = ODataVocabularyReader.MapToClr(iEdmValue);

            result.Should()
            .Be(originalValue, "because a given clr value should roundtrip through its appropriate edm value ");
        }