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(
186
186
187
187
Running this test will give us the following strange error message :
188
188
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' .
190
191
```
191
192
192
193
The 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