2
0
mirror of synced 2025-01-10 00:25:49 +00:00
cs-codex-dist-tests/Tests/AutoBootstrapDistTest.cs
2023-09-13 14:24:43 +02:00

27 lines
710 B
C#

using CodexPlugin;
using DistTestCore;
using DistTestCore.Helpers;
using NUnit.Framework;
namespace Tests
{
public class AutoBootstrapDistTest : CodexDistTest
{
private readonly List<IOnlineCodexNode> onlineCodexNodes = new List<IOnlineCodexNode>();
[SetUp]
public void SetUpBootstrapNode()
{
BootstrapNode = AddCodex(s => s.WithName("BOOTSTRAP"));
onlineCodexNodes.Add(BootstrapNode);
}
protected override void OnCodexSetup(ICodexSetup setup)
{
if (BootstrapNode != null) setup.WithBootstrapNode(BootstrapNode);
}
protected IOnlineCodexNode? BootstrapNode { get; private set; }
}
}