Beispiel #1
0
        public void BindAsOperationWithWildcardInPathTokenAndBindingParameterTypeThrows()
        {
            var              model            = new FindOperationsByBindingParameterTypeHierarchyThrowingCatchableExceptionEdmModel();
            IEdmEntityType   entityType       = new EdmEntityType("n", "EntityType");
            ODataPathSegment foundPathSegment = null;

            Assert.False(SelectPathSegmentTokenBinder.TryBindAsOperation(new SystemToken("f*oo", null), model, entityType, out foundPathSegment));
        }
        public void ValidateThrowInFindOperationsByBindingParameterTypeHierarchyExceptionDoesNotSurface()
        {
            var              model            = new FindOperationsByBindingParameterTypeHierarchyThrowingCatchableExceptionEdmModel();
            IEdmEntityType   entityType       = new EdmEntityType("n", "EntityType");
            ODataPathSegment foundPathSegment = null;

            SelectPathSegmentTokenBinder.TryBindAsOperation(new SystemToken("foo", null), model, entityType, out foundPathSegment).Should().BeFalse();
        }
 public void ValidateThrowInFindOperationsByBindingParameterTypeHierarchyExceptionDoesNotSurface()
 {
     var model = new FindOperationsByBindingParameterTypeHierarchyThrowingCatchableExceptionEdmModel();
     IEdmEntityType entityType = new EdmEntityType("n", "EntityType");
     ODataPathSegment foundPathSegment = null;
     SelectPathSegmentTokenBinder.TryBindAsOperation(new SystemToken("foo", null), model, entityType, out foundPathSegment).Should().BeFalse();
 }