Files
Enciphered.Blazor.UIComponents/Enciphered.Blazor.UIComponents.Tests/GlobalSetup.cs
T
2026-04-13 15:08:49 +05:00

25 lines
592 B
C#

namespace Enciphered.Blazor.UIComponents.Tests;
/// <summary>
/// Assembly-level setup: boots the demo server once before any test runs.
/// </summary>
[SetUpFixture]
public class GlobalSetup
{
public static DemoServerFixture Server { get; private set; } = null!;
[OneTimeSetUp]
public async Task OneTimeSetUp()
{
Server = new DemoServerFixture();
await Server.StartAsync();
TestContext.Out.WriteLine($"Demo server started at {Server.BaseUrl}");
}
[OneTimeTearDown]
public void OneTimeTearDown()
{
Server?.Dispose();
}
}