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