File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,8 @@ public void AddressAndPaymentShouldRerurnRedirectWithValidData(
186186
187187Running this test will give us the following strange error message :
188188
189- ``` When calling AddressAndPayment action in CheckoutController expected redirect result to have resolved location to '/Checkout/Complete/1' , but in fact received '/Home/Complete/1' .
189+ ```
190+ When calling AddressAndPayment action in CheckoutController expected redirect result to have resolved location to '/Checkout/Complete/1' , but in fact received '/Home/Complete/1' .
190191```
191192
192193The problem is that the request path is empty which makes the action route data being invalid . For that reason , we are receiving wrong redirection location . The fix is easy - just call **"WithRouteData "**:
You can’t perform that action at this time.
0 commit comments