525 references to Create
Aspire.Dashboard (1)
Aspire.Dashboard.Components.Tests (6)
Aspire.Dashboard.Tests (3)
Aspire.Hosting.Azure.Tests (2)
KeyManagementSimulator (1)
Microsoft.AspNetCore.Authentication.Test (2)
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 (20)
Microsoft.AspNetCore.Diagnostics (5)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (2)
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.Diagnostics.Middleware.Tests (11)
Latency\RequestLatencyTelemetryMiddlewareTests.cs (11)
33Options.Create(new RequestLatencyTelemetryOptions()), new List<ILatencyDataExporter> { ex1, ex2 },
34Options.Create(new ApplicationMetadata { ApplicationName = serverName }));
63Options.Create(new RequestLatencyTelemetryOptions()),
92Options.Create(new RequestLatencyTelemetryOptions()), new List<ILatencyDataExporter> { ex1, ex2 },
93Options.Create(new ApplicationMetadata { ApplicationName = serverName }));
121Options.Create(new RequestLatencyTelemetryOptions()),
123Options.Create(new ApplicationMetadata()));
150Options.Create(new RequestLatencyTelemetryOptions()),
152Options.Create(new ApplicationMetadata()));
172Options.Create(new RequestLatencyTelemetryOptions { LatencyDataExportTimeout = exportTimeout }),
174Options.Create(new ApplicationMetadata()));
Microsoft.AspNetCore.HeaderParsing (1)
Microsoft.AspNetCore.HeaderParsing.Tests (2)
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),
575var server = new KestrelServer(Options.Create(options), mockTransportFactory.Object, mockLoggerFactory.Object);
633var server = new KestrelServer(Options.Create(options), mockTransportFactory.Object, mockLoggerFactory.Object);
688var server = new KestrelServer(Options.Create(options), mockTransportFactory.Object, mockLoggerFactory.Object);
823var server = new KestrelServer(Options.Create(options), mockTransportFactory.Object, mockLoggerFactory.Object);
961var server = new KestrelServer(Options.Create(options), mockTransportFactory.Object, mockLoggerFactory.Object);
975return new KestrelServer(Options.Create(options), new MockTransportFactory(), new LoggerFactory(new[] { new KestrelTestLoggerProvider(testLogger) }));
980return 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.AI.AzureAIInference.Tests (2)
Microsoft.Extensions.AI.Integration.Tests (3)
Microsoft.Extensions.AI.Ollama.Tests (2)
Microsoft.Extensions.AI.OpenAI.Tests (5)
Microsoft.Extensions.Compliance.Redaction.Tests (5)
Microsoft.Extensions.Compliance.Testing (3)
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (2)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (36)
ResourceMonitoringServiceTests.cs (19)
51Create(new ResourceMonitoringOptions()),
73new ResourceMonitorService(mockProvider.Object, mockLogger.Object, Create((ResourceMonitoringOptions)null!), mockPublishers.Object, _clock));
87new ResourceMonitorService(mockProvider.Object, mockLogger.Object, Create(new ResourceMonitoringOptions()), null!, TimeProvider.System));
110Create(new ResourceMonitoringOptions
140Create(new ResourceMonitoringOptions()),
168Create(new ResourceMonitoringOptions
200Create(new ResourceMonitoringOptions
241Create(new ResourceMonitoringOptions
274Create(new ResourceMonitoringOptions
315Create(new ResourceMonitoringOptions
358Create(new ResourceMonitoringOptions
445Create(options),
554Create(options),
594Create(new ResourceMonitoringOptions()),
616Create(new ResourceMonitoringOptions()),
651Create(new ResourceMonitoringOptions
676Create(new ResourceMonitoringOptions
700Create(new ResourceMonitoringOptions
720Microsoft.Extensions.Options.Options.Create(new ResourceMonitoringOptions()), Array.Empty<IResourceUtilizationPublisher>(), TimeProvider.System);
Microsoft.Extensions.Diagnostics.Testing (1)
Microsoft.Extensions.Diagnostics.Testing.Tests (2)
Microsoft.Extensions.Hosting.WindowsServices (1)
Microsoft.Extensions.Http.Diagnostics.Tests (5)
Microsoft.Extensions.ServiceDiscovery.Tests (2)
Microsoft.Extensions.Telemetry.Tests (4)
RoutingSandbox (1)
RoutingWebSite (1)
Sockets.BindTests (1)