Ejemplo n.º 1
0
        private IAndLocalRedirectTestBuilder ProcessRouteLambdaExpression <TController>(LambdaExpression actionCall)
        {
            RouteActionResultValidator.ValidateExpressionLink(
                this.TestContext,
                LinkGenerationTestContext.FromLocalRedirectResult(this.ActionResult),
                actionCall,
                this.ThrowNewRedirectResultAssertionException);

            return(this);
        }
Ejemplo n.º 2
0
        private IAndCreatedTestBuilder ProcessRouteLambdaExpression <TController>(LambdaExpression actionCall)
        {
            this.createdAtExpression = actionCall;

            RouteActionResultValidator.ValidateExpressionLink(
                this.TestContext,
                LinkGenerationTestContext.FromCreatedResult(this.ActionResult),
                actionCall,
                this.ThrowNewCreatedResultAssertionException);

            return(this);
        }