elsa-core/test/component/Elsa.AzureServiceBus.ComponentTests/Fixtures/App.cs
Sipke Schoorstra 9ecbb3f360 Comment out scope disposal and update server configurations
Commented out Scope disposal to prevent test runner hangs in component tests. Adjusted Cluster class to use property initializers instead of constructor. Updated workflow server connection strings and added detailed SQL Server configuration in Program.cs.
2024-11-01 18:02:47 +01:00

24 lines
569 B
C#

namespace Elsa.AzureServiceBus.ComponentTests;
public class App : IAsyncLifetime
{
public App()
{
Infrastructure = new();
WorkflowServer = new(Infrastructure, "http://localhost:5004");
}
public Infrastructure Infrastructure { get; set; }
public WorkflowServer WorkflowServer { get; set; }
public async Task InitializeAsync()
{
await Infrastructure.InitializeAsync();
}
public async Task DisposeAsync()
{
await Infrastructure.DisposeAsync();
await WorkflowServer.DisposeAsync();
}
}