25 lines
592 B
C#
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();
|
|
}
|
|
}
|