1 implementation of IAnotherFakeServiceCounter
Microsoft.Extensions.DependencyInjection.AutoActivation.Tests (1)
Helpers\AnotherFakeServiceCounter.cs (1)
6public class AnotherFakeServiceCounter : IAnotherFakeServiceCounter
27 references to IAnotherFakeServiceCounter
Microsoft.Extensions.DependencyInjection.AutoActivation.Tests (27)
AcceptanceTest.cs (13)
110.AddSingleton<IAnotherFakeServiceCounter>(anotherFakeServiceCount) 135.AddSingleton<IAnotherFakeServiceCounter>(anotherFakeServiceCount) 158.AddSingleton<IAnotherFakeServiceCounter>(anotherFakeServiceCount) 177.AddSingleton<IAnotherFakeServiceCounter>(anotherFakeServiceCount) 179.AddActivatedSingleton(sp => new AnotherFakeService(sp.GetService<IAnotherFakeServiceCounter>()!))) 196.AddSingleton<IAnotherFakeServiceCounter>(anotherFakeServiceCount) 198.AddActivatedSingleton(typeof(AnotherFakeService), sp => new AnotherFakeService(sp.GetService<IAnotherFakeServiceCounter>()!))) 232.AddSingleton<IAnotherFakeServiceCounter>(anotherFakeServiceCount) 236services.TryAddActivatedSingleton(typeof(AnotherFakeService), sp => new AnotherFakeService(sp.GetService<IAnotherFakeServiceCounter>()!)); 256.AddSingleton<IAnotherFakeServiceCounter>(anotherFakeServiceCount) 260services.TryAddActivatedSingleton(sp => new AnotherFakeService(sp.GetService<IAnotherFakeServiceCounter>()!)); 280.AddSingleton<IAnotherFakeServiceCounter>(anotherFakeServiceCount); 302.AddSingleton<IAnotherFakeServiceCounter>(anotherFakeServiceCount);
AcceptanceTest.Keyed.cs (13)
93.AddSingleton<IAnotherFakeServiceCounter>(anotherFakeServiceCount) 119.AddSingleton<IAnotherFakeServiceCounter>(anotherFakeServiceCount) 143.AddSingleton<IAnotherFakeServiceCounter>(anotherFakeServiceCount) 163.AddSingleton<IAnotherFakeServiceCounter>(anotherFakeServiceCount) 165.AddActivatedKeyedSingleton(serviceKey, (sp, _) => new AnotherFakeService(sp.GetRequiredService<IAnotherFakeServiceCounter>()))) 183.AddSingleton<IAnotherFakeServiceCounter>(anotherFakeServiceCount) 185.AddActivatedKeyedSingleton(typeof(AnotherFakeService), serviceKey, (sp, _) => new AnotherFakeService(sp.GetService<IAnotherFakeServiceCounter>()!))) 221.AddSingleton<IAnotherFakeServiceCounter>(anotherFakeServiceCount) 225services.TryAddActivatedKeyedSingleton(typeof(AnotherFakeService), serviceKey, (sp, _) => new AnotherFakeService(sp.GetService<IAnotherFakeServiceCounter>()!)); 246.AddSingleton<IAnotherFakeServiceCounter>(anotherFakeServiceCount) 250services.TryAddActivatedKeyedSingleton(serviceKey, (sp, _) => new AnotherFakeService(sp.GetService<IAnotherFakeServiceCounter>()!)); 271.AddSingleton<IAnotherFakeServiceCounter>(anotherFakeServiceCount); 294.AddSingleton<IAnotherFakeServiceCounter>(anotherFakeServiceCount);
Fakes\AnotherFakeService.cs (1)
10public AnotherFakeService(IAnotherFakeServiceCounter count)