76 references to StaticFilesTestServer
Microsoft.AspNetCore.StaticFiles.Tests (76)
CacheHeaderTests.cs (21)
17
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
28
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
48
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
60
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
74
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
86
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
112
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
126
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
140
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
164
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
188
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
207
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
233
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
282
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
297
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
319
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
338
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
366
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
385
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
400
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
415
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
DefaultFilesMiddlewareTests.cs (8)
20
using (await
StaticFilesTestServer
.Create(app => app.UseDefaultFiles(new DefaultFilesOptions { FileProvider = null })))
24
using var host = await
StaticFilesTestServer
.Create(app => app.UseDefaultFiles((string)null));
62
using var host = await
StaticFilesTestServer
.Create(app =>
85
using var host = await
StaticFilesTestServer
.Create(
128
using var host = await
StaticFilesTestServer
.Create(
210
using var host = await
StaticFilesTestServer
.Create(app =>
257
using var host = await
StaticFilesTestServer
.Create(app => app.UseDefaultFiles(new DefaultFilesOptions
312
using var host = await
StaticFilesTestServer
.Create(app => app.UseDefaultFiles(new DefaultFilesOptions
DirectoryBrowserMiddlewareTests.cs (11)
20
using var host = await
StaticFilesTestServer
.Create(
28
using (await
StaticFilesTestServer
.Create(
35
using (await
StaticFilesTestServer
.Create(
42
using var host = await
StaticFilesTestServer
.Create(
83
using var host = await
StaticFilesTestServer
.Create(
102
using var host = await
StaticFilesTestServer
.Create(
143
using var host = await
StaticFilesTestServer
.Create(
216
using var host = await
StaticFilesTestServer
.Create(
260
using var host = await
StaticFilesTestServer
.Create(
310
using var host = await
StaticFilesTestServer
.Create(
358
using var host = await
StaticFilesTestServer
.Create(
RangeHeaderTests.cs (22)
19
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
40
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
61
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
78
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
95
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
112
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
133
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
150
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
167
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
186
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
206
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
233
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
268
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
289
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
310
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
324
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
342
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
357
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
377
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
399
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
420
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
440
using var host = await
StaticFilesTestServer
.Create(app => app.UseFileServer());
StaticFileMiddlewareTests.cs (14)
123
using var host = await
StaticFilesTestServer
.Create(app => app.UseStaticFiles(new StaticFileOptions
142
using (await
StaticFilesTestServer
.Create(app => app.UseStaticFiles(new StaticFileOptions { ContentTypeProvider = null })))
146
using (await
StaticFilesTestServer
.Create(app => app.UseStaticFiles(new StaticFileOptions { FileProvider = null })))
150
using var host = await
StaticFilesTestServer
.Create(app => app.UseStaticFiles((string)null));
179
using var host = await
StaticFilesTestServer
.Create(app => app.UseStaticFiles(new StaticFileOptions
214
using var host = await
StaticFilesTestServer
.Create(app => app.UseStaticFiles(new StaticFileOptions
254
using var host = await
StaticFilesTestServer
.Create(app => app.UseStaticFiles(new StaticFileOptions
297
using var host = await
StaticFilesTestServer
.Create(app => app.UseStaticFiles(new StaticFileOptions
342
using var host = await
StaticFilesTestServer
.Create(app =>
390
using var host = await
StaticFilesTestServer
.Create(app =>
420
using var host = await
StaticFilesTestServer
.Create(app =>
446
using var host = await
StaticFilesTestServer
.Create(app =>
472
using var host = await
StaticFilesTestServer
.Create(app => app.UseStaticFiles(new StaticFileOptions
532
using var host = await
StaticFilesTestServer
.Create(app => app.UseStaticFiles(new StaticFileOptions