@@ -51,7 +51,7 @@ The simplest route test possible:
51
51
52
52
``` c#
53
53
[Fact ]
54
- public void GetErrorActionShouldBeRoutedSuccessfuly ()
54
+ public void GetErrorActionShouldBeRoutedSuccessfully ()
55
55
=> MyRouting
56
56
.Configuration ()
57
57
.ShouldMap (" /Home/Error" )
@@ -71,11 +71,11 @@ public async Task<IActionResult> AddToCart(int id)
71
71
}
72
72
```
73
73
74
- Create ** "ShoppingCartRouteTest"" ** class and add the following test:
74
+ Create ** "ShoppingCartRouteTest"** class and add the following test:
75
75
76
76
``` c#
77
77
[Fact ]
78
- public void GetAddToCartActionShouldBeRoutedSuccessfuly ()
78
+ public void GetAddToCartActionShouldBeRoutedSuccessfully ()
79
79
=> MyRouting
80
80
.Configuration ()
81
81
.ShouldMap (" /ShoppingCart/AddToCart/1" )
@@ -91,11 +91,11 @@ public async Task<IActionResult> Browse(string genre)
91
91
}
92
92
```
93
93
94
- Create ** "StoreRouteTest"" ** class and add the following test:
94
+ Create ** "StoreRouteTest"** class and add the following test:
95
95
96
96
``` c#
97
97
[Fact ]
98
- public void GetBrowseActionShouldBeRoutedSuccessfuly ()
98
+ public void GetBrowseActionShouldBeRoutedSuccessfully ()
99
99
=> MyRouting
100
100
.Configuration ()
101
101
.ShouldMap (" /Store/Browse?genre=HipHop" )
@@ -125,7 +125,7 @@ We do not want to test the **"MusicStoreContext"** and the **"IMemoryCache"** ac
125
125
126
126
``` c#
127
127
[Fact ]
128
- public void GetIndexActionShouldBeRoutedSuccessfuly ()
128
+ public void GetIndexActionShouldBeRoutedSuccessfully ()
129
129
=> MyRouting
130
130
.Configuration ()
131
131
.ShouldMap (" /Home" )
@@ -154,7 +154,7 @@ The following test will fail right away:
154
154
155
155
``` c#
156
156
[Fact ]
157
- public void PostRemoveFromCartActionShouldBeRoutedSuccessfuly ()
157
+ public void PostRemoveFromCartActionShouldBeRoutedSuccessfully ()
158
158
=> MyRouting
159
159
.Configuration ()
160
160
.ShouldMap (" /ShoppingCart/RemoveFromCart/1" )
@@ -167,7 +167,7 @@ We are testing with HTTP Get request while the action is restricted only for HTT
167
167
168
168
``` c#
169
169
[Fact ]
170
- public void PostRemoveFromCartActionShouldBeRoutedSuccessfuly ()
170
+ public void PostRemoveFromCartActionShouldBeRoutedSuccessfully ()
171
171
=> MyRouting
172
172
.Configuration ()
173
173
.ShouldMap (request => request // <---
@@ -225,7 +225,7 @@ Let's update the test to make it pass:
225
225
226
226
``` c#
227
227
[Fact ]
228
- public void PostRemoveFromCartActionShouldBeRoutedSuccessfuly ()
228
+ public void PostRemoveFromCartActionShouldBeRoutedSuccessfully ()
229
229
=> MyRouting
230
230
.Configuration ()
231
231
.ShouldMap (request => request
@@ -245,7 +245,7 @@ Let's test a **"CheckoutController"** action, because all actions in that contro
245
245
246
246
``` c#
247
247
[Fact ]
248
- public void GetAddressAndPaymentActionShouldBeRoutedSuccessfuly ()
248
+ public void GetAddressAndPaymentActionShouldBeRoutedSuccessfully ()
249
249
=> MyRouting
250
250
.Configuration ()
251
251
.ShouldMap (request => request
@@ -290,7 +290,7 @@ Let's test that route! In **"Routing"**, create an **"Admin"** folder. In it cre
290
290
291
291
``` c#
292
292
[Fact ]
293
- public void GetIndexActionShouldBeRoutedSuccessfuly ()
293
+ public void GetIndexActionShouldBeRoutedSuccessfully ()
294
294
=> MyRouting
295
295
.Configuration ()
296
296
.ShouldMap (request => request
@@ -320,7 +320,7 @@ The login view model should come from the request form so we may decide to ignor
320
320
321
321
``` c#
322
322
[Fact ]
323
- public void PostLoginActionShouldBeRoutedSuccessfuly ()
323
+ public void PostLoginActionShouldBeRoutedSuccessfully ()
324
324
=> MyRouting
325
325
.Configuration ()
326
326
.ShouldMap (request => request
0 commit comments