29 references to AddTransient
Microsoft.AspNetCore.Authorization.Test (1)
AuthorizationMiddlewareResultHandlerTests.cs (1)
138
services.
AddTransient
(provider => authenticationService ?? new Mock<IAuthenticationService>().Object);
Microsoft.AspNetCore.Components.Web.Tests (4)
Virtualization\VirtualizeTest.cs (4)
24
.
AddTransient
((sp) => Mock.Of<IJSRuntime>())
43
.
AddTransient
((sp) => Mock.Of<IJSRuntime>())
62
.
AddTransient
((sp) => Mock.Of<IJSRuntime>())
83
.
AddTransient
((sp) => Mock.Of<IJSRuntime>())
Microsoft.AspNetCore.Hosting.Tests (2)
WebHostTests.cs (2)
755
services.
AddTransient
<IStartupFilter>(serviceProvider => new TestFilter(
759
services.
AddTransient
<IStartupFilter>(serviceProvider => new TestFilter(
Microsoft.AspNetCore.Mvc.Core.Test (1)
Routing\DynamicControllerEndpointMatcherPolicyTest.cs (1)
68
services.
AddTransient
<CustomTransformer>(s =>
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (1)
59
services.
AddTransient
<CustomTransformer>(s =>
Microsoft.Extensions.Http (5)
DependencyInjection\HttpClientBuilderExtensions.cs (5)
53
builder.Services.
AddTransient
<IConfigureOptions<HttpClientFactoryOptions>>(services =>
379
builder.Services.
AddTransient
(s => AddTransientHelper<TClient>(s, builder));
443
builder.Services.
AddTransient
(s => AddTransientHelper<TClient, TImplementation>(s, builder));
494
builder.Services.
AddTransient
<TClient>(s =>
543
builder.Services.
AddTransient
<TClient>(s =>
Microsoft.Extensions.Options (15)
OptionsBuilder.cs (15)
66
Services.
AddTransient
<IConfigureOptions<TOptions>>(sp =>
85
Services.
AddTransient
<IConfigureOptions<TOptions>>(sp =>
106
Services.
AddTransient
<IConfigureOptions<TOptions>>(
134
Services.
AddTransient
<IConfigureOptions<TOptions>>(
165
Services.
AddTransient
<IConfigureOptions<TOptions>>(
203
Services.
AddTransient
<IPostConfigureOptions<TOptions>>(sp =>
222
Services.
AddTransient
<IPostConfigureOptions<TOptions>>(sp =>
243
Services.
AddTransient
<IPostConfigureOptions<TOptions>>(
271
Services.
AddTransient
<IPostConfigureOptions<TOptions>>(
302
Services.
AddTransient
<IPostConfigureOptions<TOptions>>(
356
Services.
AddTransient
<IValidateOptions<TOptions>>(sp =>
387
Services.
AddTransient
<IValidateOptions<TOptions>>(sp =>
426
Services.
AddTransient
<IValidateOptions<TOptions>>(sp =>
470
Services.
AddTransient
<IValidateOptions<TOptions>>(sp =>
519
Services.
AddTransient
<IValidateOptions<TOptions>>(sp =>