9 instantiations of TestAppHostSocket
Aspire.Cli.Tests (9)
Backchannel\AppHostAuxiliaryBackchannelTests.cs (2)
178return await AppHostAuxiliaryBackchannel.CreateFromSocketAsync(new TestAppHostSocket("socket.hash1"), isInScope: true, NullLogger.Instance, new ProfilingTelemetry(new ConfigurationBuilder().Build()), clientSocket, timeout, CancellationToken.None).DefaultTimeout(); 181return await AppHostAuxiliaryBackchannel.CreateFromSocketAsync(new TestAppHostSocket("socket.hash1"), isInScope: true, NullLogger.Instance, new ProfilingTelemetry(new ConfigurationBuilder().Build()), clientSocket, CancellationToken.None).DefaultTimeout();
Backchannel\AppHostConnectionResolverTests.cs (1)
688AppHostSocket = new TestAppHostSocket($"test-socket-{processId}")
Backchannel\AuxiliaryBackchannelMonitorTests.cs (1)
461var socket = new TestAppHostSocket(socketPath)
Commands\PsCommandTests.cs (1)
868return await AppHostAuxiliaryBackchannel.CreateFromSocketAsync(new TestAppHostSocket("socket.hash1"), isInScope: true, NullLogger.Instance, new ProfilingTelemetry(new ConfigurationBuilder().Build()), clientSocket, CancellationToken.None).DefaultTimeout();
Mcp\ListAppHostsToolTests.cs (1)
177return new AppHostAuxiliaryBackchannel(new TestAppHostSocket(socketPath), rpc, appHostInfo, isInScope);
Projects\RunningInstanceManagerTests.cs (1)
50var stopped = await manager.StopRunningInstanceAsync(new TestAppHostSocket(socketPath), CancellationToken.None).DefaultTimeout();
TestServices\TestAppHostAuxiliaryBackchannel.cs (2)
24private IAppHostSocket _socket = new TestAppHostSocket("/tmp/test.sock"); 34set => Socket = new TestAppHostSocket(value);
12 references to TestAppHostSocket
Aspire.Cli.Tests (12)
Backchannel\AppHostConnectionResolverTests.cs (1)
694public TestAppHostSocket AppHostSocket { get; }
Backchannel\AuxiliaryBackchannelMonitorTests.cs (1)
461var socket = new TestAppHostSocket(socketPath)
Commands\StopCommandTests.cs (7)
1725Assert.Equal(1, Assert.IsType<TestAppHostSocket>(connection.Socket).TryDeleteCallCount); 1880Assert.Equal(0, Assert.IsType<TestAppHostSocket>(connection.Socket).TryDeleteCallCount); 1952Assert.Equal(0, Assert.IsType<TestAppHostSocket>(connection.Socket).TryDeleteCallCount); 2005Assert.Equal(1, Assert.IsType<TestAppHostSocket>(connection.Socket).TryDeleteCallCount); 2063Assert.Equal(0, Assert.IsType<TestAppHostSocket>(connection.Socket).TryDeleteCallCount); 2117Assert.Equal(0, Assert.IsType<TestAppHostSocket>(connection.Socket).TryDeleteCallCount); 2153Assert.Equal(1, Assert.IsType<TestAppHostSocket>(connection.Socket).TryDeleteCallCount);
Commands\TrayProtocolCommandTests.cs (3)
200Assert.Equal(scenario is "stopped" or "replacement" ? 1 : 0, Assert.IsType<TestAppHostSocket>(selected.Socket).TryDeleteCallCount); 201Assert.Equal(0, Assert.IsType<TestAppHostSocket>(sibling.Socket).TryDeleteCallCount); 202Assert.Equal(0, Assert.IsType<TestAppHostSocket>(replacement.Socket).TryDeleteCallCount);