public void CtorODataModelAttribute_SetsModel()
        {
            // Assert & Act & Assert
            ODataRouteComponentAttribute odataModel = new ODataRouteComponentAttribute();

            Assert.Equal(string.Empty, odataModel.RoutePrefix);

            // Assert & Act & Assert
            odataModel = new ODataRouteComponentAttribute("odata");
            Assert.Equal("odata", odataModel.RoutePrefix);
        }
        internal static bool CanApply(string prefix, Func <ODataRouteComponentAttribute> func)
        {
            ODataRouteComponentAttribute odataModel = func?.Invoke();

            if (odataModel == null)
            {
                return(true); // apply to all model
            }
            else if (prefix == odataModel.RoutePrefix)
            {
                return(true);
            }

            return(false);
        }