2 instantiations of ServerInstance
Microsoft.AspNetCore.Components.Testing (1)
Infrastructure\ServerFixture.cs (1)
156var instance = new ServerInstance(appName, key, ProxyUrl, instanceKey =>
Microsoft.AspNetCore.Components.Testing.Tests (1)
PlaywrightExtensionsTests.cs (1)
93return new ServerInstance("TestApp", "key", "http://localhost:5000", null);
30 references to ServerInstance
Microsoft.AspNetCore.Components.Testing (19)
Infrastructure\PlaywrightExtensions.cs (4)
41/// so the YARP proxy routes requests to the correct <see cref="ServerInstance"/>. 47this BrowserNewContextOptions options, ServerInstance server) 102ServerInstance server, 128this IBrowserContext context, ServerInstance server, string sessionId)
Infrastructure\RemoteLock.cs (2)
18private readonly ServerInstance _server; 22internal RemoteLock(ServerInstance server, string key)
Infrastructure\ServerFixture.cs (9)
52private readonly ConcurrentDictionary<string, ServerInstance> _instances = new(); 113/// <returns>A <see cref="ServerInstance"/> with the proxy routing info needed for tests.</returns> 114public Task<ServerInstance> StartServerAsync<TApp>(Action<ServerStartOptions>? configure = null) 128/// <returns>A <see cref="ServerInstance"/> with the proxy routing info needed for tests.</returns> 129public async Task<ServerInstance> StartServerAsync( 135var key = ServerInstance.ComputeKey(appName, options); 137if (_instances.TryGetValue(key, out var existing)) 156var instance = new ServerInstance(appName, key, ProxyUrl, instanceKey => 195foreach (var instance in _instances.Values)
Infrastructure\ServerInstance.cs (1)
20/// Disposing a <see cref="ServerInstance"/> kills the app process and unregisters
Infrastructure\TestLockClient.cs (3)
25private readonly ServerInstance _server; 28TestLockClient(ServerInstance server, string sessionId) 42ServerInstance server, IBrowserContext context)
Microsoft.AspNetCore.Components.Testing.Tests (11)
PlaywrightExtensionsTests.cs (4)
16var server = CreateMockServerInstance(); 38var server = CreateMockServerInstance(); 52var server = CreateMockServerInstance(); 89static ServerInstance CreateMockServerInstance()
ServerInstanceTests.cs (7)
17var key = ServerInstance.ComputeKey("MyApp", options); 31var key = ServerInstance.ComputeKey("MyApp", options); 48var key = ServerInstance.ComputeKey("MyApp", options); 69var key1 = ServerInstance.ComputeKey("App", options1); 70var key2 = ServerInstance.ComputeKey("App", options2); 83var key1 = ServerInstance.ComputeKey("App1", options); 84var key2 = ServerInstance.ComputeKey("App2", options);