@@ -69,17 +69,17 @@ The following test class, `BasicTests`, uses the `WebApplicationFactory` to boot
6969
7070:::zone pivot="xunit"
7171
72- :::code language="csharp" source="integration-tests/ snippets/xunit/IntegrationTests/BasicTests.cs?name=snippet1":::
72+ :::code language="csharp" source="snippets/xunit/IntegrationTests/BasicTests.cs?name=snippet1":::
7373
7474::: zone-end
7575:::zone pivot="mstest"
7676
77- :::code language="csharp" source="integration-tests/ snippets/mstest/IntegrationTests/BasicTests.cs?name=snippet1":::
77+ :::code language="csharp" source="snippets/mstest/IntegrationTests/BasicTests.cs?name=snippet1":::
7878
7979::: zone-end
8080:::zone pivot="nunit"
8181
82- :::code language="csharp" source="integration-tests/ snippets/nunit/IntegrationTests/BasicTests.cs?name=snippet1":::
82+ :::code language="csharp" source="snippets/nunit/IntegrationTests/BasicTests.cs?name=snippet1":::
8383
8484::: zone-end
8585
@@ -99,17 +99,17 @@ Web host configuration can be created independently of the test classes by inher
9999
100100 :::zone pivot="xunit"
101101
102- :::code language="csharp" source="integration-tests/ snippets/xunit/CustomWebApplicationFactory.cs?name=snippet1":::
102+ :::code language="csharp" source="snippets/xunit/CustomWebApplicationFactory.cs?name=snippet1":::
103103
104104 ::: zone-end
105105 :::zone pivot="mstest"
106106
107- :::code language="csharp" source="integration-tests/ snippets/mstest/CustomWebApplicationFactory.cs?name=snippet1":::
107+ :::code language="csharp" source="snippets/mstest/CustomWebApplicationFactory.cs?name=snippet1":::
108108
109109 ::: zone-end
110110 :::zone pivot="nunit"
111111
112- :::code language="csharp" source="integration-tests/ snippets/nunit/CustomWebApplicationFactory.cs?name=snippet1":::
112+ :::code language="csharp" source="snippets/nunit/CustomWebApplicationFactory.cs?name=snippet1":::
113113
114114 ::: zone-end
115115
@@ -130,17 +130,17 @@ Web host configuration can be created independently of the test classes by inher
130130
131131 :::zone pivot="xunit"
132132
133- :::code language="csharp" source="integration-tests/ snippets/xunit/IntegrationTests/IndexPageTests.cs?name=snippet1":::
133+ :::code language="csharp" source="snippets/xunit/IntegrationTests/IndexPageTests.cs?name=snippet1":::
134134
135135 ::: zone-end
136136 :::zone pivot="mstest"
137137
138- :::code language="csharp" source="integration-tests/ snippets/mstest/IntegrationTests/IndexPageTests.cs?name=snippet1":::
138+ :::code language="csharp" source="snippets/mstest/IntegrationTests/IndexPageTests.cs?name=snippet1":::
139139
140140 ::: zone-end
141141 :::zone pivot="nunit"
142142
143- :::code language="csharp" source="integration-tests/ snippets/nunit/IntegrationTests/IndexPageTests.cs?name=snippet1":::
143+ :::code language="csharp" source="snippets/nunit/IntegrationTests/IndexPageTests.cs?name=snippet1":::
144144
145145 ::: zone-end
146146
@@ -150,17 +150,17 @@ Web host configuration can be created independently of the test classes by inher
150150
151151 :::zone pivot="xunit"
152152
153- :::code language="csharp" source="integration-tests/ snippets/xunit/IntegrationTests/IndexPageTests.cs?name=snippet2":::
153+ :::code language="csharp" source="snippets/xunit/IntegrationTests/IndexPageTests.cs?name=snippet2":::
154154
155155 ::: zone-end
156156 :::zone pivot="mstest"
157157
158- :::code language="csharp" source="integration-tests/ snippets/mstest/IntegrationTests/IndexPageTests.cs?name=snippet2":::
158+ :::code language="csharp" source="snippets/mstest/IntegrationTests/IndexPageTests.cs?name=snippet2":::
159159
160160 ::: zone-end
161161 :::zone pivot="nunit"
162162
163- :::code language="csharp" source="integration-tests/ snippets/nunit/IntegrationTests/IndexPageTests.cs?name=snippet2":::
163+ :::code language="csharp" source="snippets/nunit/IntegrationTests/IndexPageTests.cs?name=snippet2":::
164164
165165 ::: zone-end
166166
@@ -197,17 +197,17 @@ Because another test in the `IndexPageTests` class performs an operation that de
197197
198198:::zone pivot="xunit"
199199
200- :::code language="csharp" source="integration-tests/ snippets/xunit/IntegrationTests/IndexPageTests.cs?name=snippet3":::
200+ :::code language="csharp" source="snippets/xunit/IntegrationTests/IndexPageTests.cs?name=snippet3":::
201201
202202::: zone-end
203203:::zone pivot="mstest"
204204
205- :::code language="csharp" source="integration-tests/ snippets/mstest/IntegrationTests/IndexPageTests.cs?name=snippet3":::
205+ :::code language="csharp" source="snippets/mstest/IntegrationTests/IndexPageTests.cs?name=snippet3":::
206206
207207::: zone-end
208208:::zone pivot="nunit"
209209
210- :::code language="csharp" source="integration-tests/ snippets/nunit/IntegrationTests/IndexPageTests.cs?name=snippet3":::
210+ :::code language="csharp" source="snippets/nunit/IntegrationTests/IndexPageTests.cs?name=snippet3":::
211211
212212::: zone-end
213213
@@ -219,17 +219,17 @@ Create the `WebApplicationFactoryClientOptions` class and pass it to the <xref:M
219219
220220:::zone pivot="xunit"
221221
222- :::code language="csharp" source="integration-tests/ snippets/xunit/IntegrationTests/IndexPageTests.cs?name=snippet1":::
222+ :::code language="csharp" source="snippets/xunit/IntegrationTests/IndexPageTests.cs?name=snippet1":::
223223
224224::: zone-end
225225:::zone pivot="mstest"
226226
227- :::code language="csharp" source="integration-tests/ snippets/mstest/IntegrationTests/IndexPageTests.cs?name=snippet1":::
227+ :::code language="csharp" source="snippets/mstest/IntegrationTests/IndexPageTests.cs?name=snippet1":::
228228
229229::: zone-end
230230:::zone pivot="nunit"
231231
232- :::code language="csharp" source="integration-tests/ snippets/nunit/IntegrationTests/IndexPageTests.cs?name=snippet1":::
232+ :::code language="csharp" source="snippets/nunit/IntegrationTests/IndexPageTests.cs?name=snippet1":::
233233
234234::: zone-end
235235
@@ -278,35 +278,35 @@ To test the service and quote injection in an integration test, a mock service i
278278
279279:::zone pivot="xunit"
280280
281- :::code language="csharp" source="integration-tests/ snippets/xunit/IntegrationTests/IndexPageTests.cs?name=snippet4":::
281+ :::code language="csharp" source="snippets/xunit/IntegrationTests/IndexPageTests.cs?name=snippet4":::
282282
283283::: zone-end
284284:::zone pivot="mstest"
285285
286- :::code language="csharp" source="integration-tests/ snippets/mstest/IntegrationTests/IndexPageTests.cs?name=snippet4":::
286+ :::code language="csharp" source="snippets/mstest/IntegrationTests/IndexPageTests.cs?name=snippet4":::
287287
288288::: zone-end
289289:::zone pivot="nunit"
290290
291- :::code language="csharp" source="integration-tests/ snippets/nunit/IntegrationTests/IndexPageTests.cs?name=snippet4":::
291+ :::code language="csharp" source="snippets/nunit/IntegrationTests/IndexPageTests.cs?name=snippet4":::
292292
293293::: zone-end
294294
295295` ConfigureTestServices ` is called, and the scoped service is registered:
296296
297297:::zone pivot="xunit"
298298
299- :::code language="csharp" source="integration-tests/ snippets/xunit/IntegrationTests/IndexPageTests.cs?name=snippet5&highlight=7-10,17,20-21":::
299+ :::code language="csharp" source="snippets/xunit/IntegrationTests/IndexPageTests.cs?name=snippet5&highlight=7-10,17,20-21":::
300300
301301::: zone-end
302302:::zone pivot="mstest"
303303
304- :::code language="csharp" source="integration-tests/ snippets/mstest/IntegrationTests/IndexPageTests.cs?name=snippet5&highlight=7-10,17,20-21":::
304+ :::code language="csharp" source="snippets/mstest/IntegrationTests/IndexPageTests.cs?name=snippet5&highlight=7-10,17,20-21":::
305305
306306::: zone-end
307307:::zone pivot="nunit"
308308
309- :::code language="csharp" source="integration-tests/ snippets/nunit/IntegrationTests/IndexPageTests.cs?name=snippet5&highlight=7-10,17,20-21":::
309+ :::code language="csharp" source="snippets/nunit/IntegrationTests/IndexPageTests.cs?name=snippet5&highlight=7-10,17,20-21":::
310310
311311::: zone-end
312312
@@ -332,17 +332,17 @@ In the `Get_SecurePageRedirectsAnUnauthenticatedUser` test, a <xref:Microsoft.As
332332
333333:::zone pivot="xunit"
334334
335- :::code language="csharp" source="integration-tests/ snippets/xunit/IntegrationTests/AuthTests.cs?name=snippet2":::
335+ :::code language="csharp" source="snippets/xunit/IntegrationTests/AuthTests.cs?name=snippet2":::
336336
337337::: zone-end
338338:::zone pivot="mstest"
339339
340- :::code language="csharp" source="integration-tests/ snippets/mstest/IntegrationTests/AuthTests.cs?name=snippet2":::
340+ :::code language="csharp" source="snippets/mstest/IntegrationTests/AuthTests.cs?name=snippet2":::
341341
342342::: zone-end
343343:::zone pivot="nunit"
344344
345- :::code language="csharp" source="integration-tests/ snippets/nunit/IntegrationTests/AuthTests.cs?name=snippet2":::
345+ :::code language="csharp" source="snippets/nunit/IntegrationTests/AuthTests.cs?name=snippet2":::
346346
347347::: zone-end
348348
@@ -355,35 +355,35 @@ The test app can mock an <xref:Microsoft.AspNetCore.Authentication.Authenticatio
355355
356356:::zone pivot="xunit"
357357
358- :::code language="csharp" source="integration-tests/ snippets/xunit/IntegrationTests/AuthTests.cs?name=snippet4&highlight=11-18":::
358+ :::code language="csharp" source="snippets/xunit/IntegrationTests/AuthTests.cs?name=snippet4&highlight=11-18":::
359359
360360::: zone-end
361361:::zone pivot="mstest"
362362
363- :::code language="csharp" source="integration-tests/ snippets/mstest/IntegrationTests/AuthTests.cs?name=snippet4&highlight=11-18":::
363+ :::code language="csharp" source="snippets/mstest/IntegrationTests/AuthTests.cs?name=snippet4&highlight=11-18":::
364364
365365::: zone-end
366366:::zone pivot="nunit"
367367
368- :::code language="csharp" source="integration-tests/ snippets/nunit/IntegrationTests/AuthTests.cs?name=snippet4&highlight=11-18":::
368+ :::code language="csharp" source="snippets/nunit/IntegrationTests/AuthTests.cs?name=snippet4&highlight=11-18":::
369369
370370::: zone-end
371371
372372The ` TestAuthHandler ` is called to authenticate a user when the authentication scheme is set to ` TestScheme ` where ` AddAuthentication ` is registered for ` ConfigureTestServices ` . It's important for the ` TestScheme ` scheme to match the scheme your app expects. Otherwise, authentication won't work.
373373
374374:::zone pivot="xunit"
375375
376- :::code language="csharp" source="integration-tests/ snippets/xunit/IntegrationTests/AuthTests.cs?name=snippet3&highlight=7-12":::
376+ :::code language="csharp" source="snippets/xunit/IntegrationTests/AuthTests.cs?name=snippet3&highlight=7-12":::
377377
378378::: zone-end
379379:::zone pivot="mstest"
380380
381- :::code language="csharp" source="integration-tests/ snippets/mstest/IntegrationTests/AuthTests.cs?name=snippet3&highlight=7-12":::
381+ :::code language="csharp" source="snippets/mstest/IntegrationTests/AuthTests.cs?name=snippet3&highlight=7-12":::
382382
383383::: zone-end
384384:::zone pivot="nunit"
385385
386- :::code language="csharp" source="integration-tests/ snippets/nunit/IntegrationTests/AuthTests.cs?name=snippet3&highlight=7-12":::
386+ :::code language="csharp" source="snippets/nunit/IntegrationTests/AuthTests.cs?name=snippet3&highlight=7-12":::
387387
388388::: zone-end
389389
@@ -399,17 +399,17 @@ Set the [environment](xref:fundamentals/environments) in the custom application
399399
400400:::zone pivot="xunit"
401401
402- :::code language="csharp" source="integration-tests/ snippets/xunit/CustomWebApplicationFactory.cs?name=snippet1&highlight=36":::
402+ :::code language="csharp" source="snippets/xunit/CustomWebApplicationFactory.cs?name=snippet1&highlight=36":::
403403
404404::: zone-end
405405:::zone pivot="mstest"
406406
407- :::code language="csharp" source="integration-tests/ snippets/mstest/CustomWebApplicationFactory.cs?name=snippet1&highlight=36":::
407+ :::code language="csharp" source="snippets/mstest/CustomWebApplicationFactory.cs?name=snippet1&highlight=36":::
408408
409409::: zone-end
410410:::zone pivot="nunit"
411411
412- :::code language="csharp" source="integration-tests/ snippets/nunit/CustomWebApplicationFactory.cs?name=snippet1&highlight=36":::
412+ :::code language="csharp" source="snippets/nunit/CustomWebApplicationFactory.cs?name=snippet1&highlight=36":::
413413
414414::: zone-end
415415
0 commit comments