10 instantiations of TestConfigSourceDetector
Aspire.Cli.Tests (10)
Configuration\ConfigSourceServiceTests.cs (9)
687var detector = new TestConfigSourceDetector { IsInternal = detected }; 712detector: new TestConfigSourceDetector { IsInternal = detected }, 736detector: new TestConfigSourceDetector { IsInternal = true, Outcome = outcome }); 761detector: new TestConfigSourceDetector { IsInternal = true }); 783detector: new TestConfigSourceDetector { IsInternal = true }, interaction: interaction, interactive: true); 798detector: new TestConfigSourceDetector { IsInternal = true }, interaction: interaction, interactive: true); 1385var detector = new TestConfigSourceDetector { IsInternal = true }; 1443var detector = new TestConfigSourceDetector { IsInternal = true }; 1549var detector = new TestConfigSourceDetector { IsInternal = true };
TestServices\TestConfigSourceServices.cs (1)
37return new ConfigSourceService(context, configurationService, environment ?? new TestEnvironment(), detector ?? new TestConfigSourceDetector(),
10 references to TestConfigSourceDetector
Aspire.Cli.Tests (10)
Commands\ConfigSourceCommandTests.cs (4)
477Assert.Equal(0, Assert.IsType<TestConfigSourceDetector>(provider.GetRequiredService<IInternalMicrosoftDetector>()).Calls); 501Assert.Equal(0, Assert.IsType<TestConfigSourceDetector>(provider.GetRequiredService<IInternalMicrosoftDetector>()).Calls); 523Assert.Equal(0, Assert.IsType<TestConfigSourceDetector>(provider.GetRequiredService<IInternalMicrosoftDetector>()).Calls); 732Assert.Equal(0, Assert.IsType<TestConfigSourceDetector>(provider.GetRequiredService<IInternalMicrosoftDetector>()).Calls);
Configuration\ConfigSourceServiceTests.cs (4)
687var detector = new TestConfigSourceDetector { IsInternal = detected }; 1385var detector = new TestConfigSourceDetector { IsInternal = true }; 1443var detector = new TestConfigSourceDetector { IsInternal = true }; 1549var detector = new TestConfigSourceDetector { IsInternal = true };
TestServices\TestConfigSourceServices.cs (1)
30TimeProvider? clock = null, IEnvironment? environment = null, TestConfigSourceDetector? detector = null,
Utils\CliTestHelper.cs (1)
93services.AddSingleton<IInternalMicrosoftDetector, TestConfigSourceDetector>();