mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-25 19:38:37 +08:00
25 lines
933 B
C#
25 lines
933 B
C#
using mRemoteNG.Connection;
|
|
using mRemoteNG.Container;
|
|
using mRemoteNG.Tree;
|
|
using mRemoteNG.Tree.Root;
|
|
|
|
namespace mRemoteNGTests.TestHelpers
|
|
{
|
|
public class ConnectionTreeModelBuilder
|
|
{
|
|
public ConnectionTreeModel Build()
|
|
{
|
|
var model = new ConnectionTreeModel();
|
|
var root = new RootNodeInfo(RootNodeType.Connection);
|
|
var folder1 = new ContainerInfo { Name = "folder1", Username = "user1", Domain = "domain1", Password = "password1" };
|
|
var con1 = new ConnectionInfo { Name = "Con1", Username = "user1", Domain = "domain1", Password = "password1" };
|
|
var con2 = new ConnectionInfo { Name = "Con2", Username = "user2", Domain = "domain2", Password = "password2" };
|
|
|
|
root.AddChild(folder1);
|
|
root.AddChild(con2);
|
|
folder1.AddChild(con1);
|
|
model.AddRootNode(root);
|
|
return model;
|
|
}
|
|
}
|
|
} |