private static void VerifyRouteUrl(this Mock <IUrlHelper> mockUrlHelper, Expression <Func <UrlRouteContext, bool> > urlRouteContextPredicateExpression, Times times)
        {
            var routeUrlInvocationLambdaExpression = UrlHelperRouteUrlInvocationLambdaExpressionFactory.Create(urlRouteContextPredicateExpression);

            mockUrlHelper.Verify(routeUrlInvocationLambdaExpression, times);
        }
        private static ISetup <IUrlHelper, string> SetupRouteUrl(this Mock <IUrlHelper> mockUrlHelper, Expression <Func <UrlRouteContext, bool> > urlRouteContextPredicateExpression)
        {
            var routeUrlInvocationLambdaExpression = UrlHelperRouteUrlInvocationLambdaExpressionFactory.Create(urlRouteContextPredicateExpression);

            return(mockUrlHelper.Setup(routeUrlInvocationLambdaExpression));
        }