2
0
mirror of synced 2025-01-23 14:59:14 +00:00
cs-codex-dist-tests/Tests/CodexTests/AutoBootstrapDistTest.cs

29 lines
643 B
C#
Raw Normal View History

2023-09-12 15:43:30 +02:00
using CodexPlugin;
using NUnit.Framework;
namespace CodexTests
2023-09-12 15:43:30 +02:00
{
2023-09-13 14:24:43 +02:00
public class AutoBootstrapDistTest : CodexDistTest
2023-09-12 15:43:30 +02:00
{
2023-09-13 14:24:43 +02:00
[SetUp]
public void SetUpBootstrapNode()
2023-09-12 15:43:30 +02:00
{
2024-05-09 09:32:48 +02:00
BootstrapNode = StartCodex(s => s.WithName("BOOTSTRAP"));
2023-09-12 15:43:30 +02:00
}
[TearDown]
public void TearDownBootstrapNode()
{
BootstrapNode = null;
}
2023-09-13 14:24:43 +02:00
protected override void OnCodexSetup(ICodexSetup setup)
2023-09-12 15:43:30 +02:00
{
2023-09-13 14:24:43 +02:00
if (BootstrapNode != null) setup.WithBootstrapNode(BootstrapNode);
2023-09-12 15:43:30 +02:00
}
2023-09-19 11:51:59 +02:00
protected ICodexNode? BootstrapNode { get; private set; }
2023-09-12 15:43:30 +02:00
}
}