teamlead-dashboard/tests/TUI.Engine.Tests/Stubs/TestContainer.cs

20 lines
385 B
C#
Raw Normal View History

2024-03-15 19:13:09 +00:00
using TUI.Engine.Containers;
using TUI.Engine.Nodes;
namespace TUI.Engine.Tests.Stubs;
public class TestContainer : ContainerBase
{
2024-03-16 19:39:58 +00:00
private readonly Nodes.Nodes _nodes = new();
2024-03-15 19:13:09 +00:00
public override Nodes.Nodes GetNodes()
{
return _nodes;
}
public TestContainer SetNodes(params INode[] nodes)
{
_nodes.AddRange(nodes);
return this;
}
}