30 references to Dependency
Microsoft.AspNetCore.OpenApi.Tests (30)
Transformers\TypeBasedTransformerLifetimeTests.cs (30)
36
var serviceCollection = new ServiceCollection().AddSingleton<
Dependency
>();
47
Dependency
.InstantiationCount = 0;
56
Assert.Equal(1,
Dependency
.InstantiationCount);
62
var serviceCollection = new ServiceCollection().AddScoped<
Dependency
>();
73
Dependency
.InstantiationCount = 0;
82
Assert.Equal(3,
Dependency
.InstantiationCount);
88
var serviceCollection = new ServiceCollection().AddTransient<
Dependency
>();
99
Dependency
.InstantiationCount = 0;
108
Assert.Equal(3,
Dependency
.InstantiationCount);
135
var serviceCollection = new ServiceCollection().AddSingleton<
Dependency
>();
145
Dependency
.InstantiationCount = 0;
154
Assert.Equal(1,
Dependency
.InstantiationCount);
160
var serviceCollection = new ServiceCollection().AddScoped<
Dependency
>();
171
Dependency
.InstantiationCount = 0;
180
Assert.Equal(3,
Dependency
.InstantiationCount);
186
var serviceCollection = new ServiceCollection().AddTransient<
Dependency
>();
197
Dependency
.InstantiationCount = 0;
206
Assert.Equal(3,
Dependency
.InstantiationCount);
255
var serviceCollection = new ServiceCollection().AddSingleton<
Dependency
>();
266
Dependency
.InstantiationCount = 0;
275
Assert.Equal(1,
Dependency
.InstantiationCount);
281
var serviceCollection = new ServiceCollection().AddScoped<
Dependency
>();
292
Dependency
.InstantiationCount = 0;
301
Assert.Equal(3,
Dependency
.InstantiationCount);
307
var serviceCollection = new ServiceCollection().AddTransient<
Dependency
>();
318
Dependency
.InstantiationCount = 0;
327
Assert.Equal(3,
Dependency
.InstantiationCount);
360
public ActivatedSchemaTransformerWithDependency(
Dependency
dependency)
389
public ActivatedOperationTransformerWithDependency(
Dependency
dependency)
418
public ActivatedDocumentTransformerWithDependency(
Dependency
dependency)