427 references to Create
KeyManagementSimulator (1)
Microsoft.AspNetCore.Authentication.Test (1)
Microsoft.AspNetCore.Authorization (1)
Microsoft.AspNetCore.Authorization.Test (9)
Microsoft.AspNetCore.Components (1)
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Microsoft.AspNetCore.Components.Server.Tests (39)
Circuits\RemoteJSDataStreamTest.cs (20)
15private static readonly TestRemoteJSRuntime _jsRuntime = new(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>());
48var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>());
76var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>());
104var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>());
122var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>());
141var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>());
160var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>());
180var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>());
205var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>());
246var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>());
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (9)
Microsoft.AspNetCore.CookiePolicy (1)
Microsoft.AspNetCore.Cors.Test (4)
Microsoft.AspNetCore.DataProtection.Tests (17)
Microsoft.AspNetCore.Diagnostics (5)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (2)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.Tests (4)
Microsoft.AspNetCore.Diagnostics.HealthChecks (4)
Builder\HealthCheckApplicationBuilderExtensions.cs (3)
62UseHealthChecksCore(app, path, port: null, new[] { Options.Create(options), });
148UseHealthChecksCore(app, path, port, new[] { Options.Create(options), });
187UseHealthChecksCore(app, path, portAsInt, new[] { Options.Create(options), });
Microsoft.AspNetCore.Http.Connections.Tests (2)
Microsoft.AspNetCore.Http.Extensions.Tests (10)
Microsoft.AspNetCore.HttpOverrides (2)
Microsoft.AspNetCore.Identity.Test (1)
Microsoft.AspNetCore.Localization (3)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (5)
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Mvc.Core.Test (91)
ControllerBaseTest.cs (10)
2347ProblemDetailsFactory = new DefaultProblemDetailsFactory(Options.Create(options)),
2376ProblemDetailsFactory = new DefaultProblemDetailsFactory(Options.Create(options)),
2398ProblemDetailsFactory = new DefaultProblemDetailsFactory(Options.Create(options)),
2419ProblemDetailsFactory = new DefaultProblemDetailsFactory(Options.Create(options)),
2440ProblemDetailsFactory = new DefaultProblemDetailsFactory(Options.Create(options)),
2466ProblemDetailsFactory = new DefaultProblemDetailsFactory(Options.Create(options)),
2493ProblemDetailsFactory = new DefaultProblemDetailsFactory(Options.Create(options)),
2517ProblemDetailsFactory = new DefaultProblemDetailsFactory(Options.Create(options)),
2538ProblemDetailsFactory = new DefaultProblemDetailsFactory(Options.Create(options)),
3209Options.Create(new MvcDataAnnotationsLocalizationOptions()),
Microsoft.AspNetCore.Mvc.Core.TestCommon (11)
Microsoft.AspNetCore.Mvc.Cors.Test (2)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (14)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (2)
Microsoft.AspNetCore.Mvc.IntegrationTests (6)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (6)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (6)
Microsoft.AspNetCore.Mvc.RazorPages.Test (34)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (4)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (33)
Microsoft.AspNetCore.OpenApi.Tests (6)
Microsoft.AspNetCore.OutputCaching.Tests (5)
Microsoft.AspNetCore.RateLimiting (1)
Microsoft.AspNetCore.RateLimiting.Tests (2)
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (1)
Microsoft.AspNetCore.RequestDecompression.Tests (5)
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (1)
Microsoft.AspNetCore.ResponseCaching.Tests (3)
Microsoft.AspNetCore.ResponseCompression.Microbenchmarks (1)
Microsoft.AspNetCore.Rewrite (1)
Microsoft.AspNetCore.Routing.Microbenchmarks (5)
Microsoft.AspNetCore.Routing.Tests (12)
Microsoft.AspNetCore.Security.Microbenchmarks (2)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (4)
Microsoft.AspNetCore.Server.HttpSys.NonHelixTests (4)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (10)
KestrelServerTests.cs (10)
274new KestrelServer(Options.Create<KestrelServerOptions>(null), new MockTransportFactory(), mockLoggerFactory.Object);
283Options.Create<KestrelServerOptions>(null),
307Options.Create<KestrelServerOptions>(options),
574var server = new KestrelServer(Options.Create(options), mockTransportFactory.Object, mockLoggerFactory.Object);
632var server = new KestrelServer(Options.Create(options), mockTransportFactory.Object, mockLoggerFactory.Object);
687var server = new KestrelServer(Options.Create(options), mockTransportFactory.Object, mockLoggerFactory.Object);
822var server = new KestrelServer(Options.Create(options), mockTransportFactory.Object, mockLoggerFactory.Object);
960var server = new KestrelServer(Options.Create(options), mockTransportFactory.Object, mockLoggerFactory.Object);
974return new KestrelServer(Options.Create(options), new MockTransportFactory(), new LoggerFactory(new[] { new KestrelTestLoggerProvider(testLogger) }));
979return new KestrelServer(Options.Create(options), new MockTransportFactory(), new LoggerFactory(new[] { new KestrelTestLoggerProvider(throwOnCriticalErrors) }));
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (4)
Microsoft.AspNetCore.Session (1)
Microsoft.AspNetCore.Session.Tests (1)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
Microsoft.AspNetCore.SignalR.Client.Tests (5)
Microsoft.AspNetCore.SignalR.Common.Tests (2)
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (4)
Microsoft.AspNetCore.SignalR.Tests (1)
Microsoft.AspNetCore.StaticFiles (3)
Microsoft.AspNetCore.TestHost (1)
Microsoft.AspNetCore.WebSockets (1)
Microsoft.Extensions.Hosting.WindowsServices (1)
RoutingSandbox (1)
RoutingWebSite (1)
Sockets.BindTests (1)