protected override TreeNodeCollection GetTreeNodes(string id, FormDataCollection queryStrings) { if (id == Constants.System.Root.ToInvariantString()) { var ctrl = new ClientApiController(); var nodes = new TreeNodeCollection(); foreach (var client in ctrl.GetAll()) { var node = CreateTreeNode( client.Id.ToString(), "-1", queryStrings, client.ToString(), "icon-user", false); nodes.Add(node); } return nodes; } throw new NotSupportedException(); }
protected override TreeNodeCollection GetTreeNodes(string id, FormDataCollection queryStrings) { if (id == Constants.System.Root.ToInvariantString()) { var ctrl = new ClientApiController(); var nodes = new TreeNodeCollection(); foreach (var client in ctrl.GetAll()) { var node = CreateTreeNode( client.Id.ToString(), "-1", queryStrings, client.ToString(), "icon-user", false); nodes.Add(node); } return(nodes); } throw new NotSupportedException(); }
public void TestInitialize() { clientApiController = Resolve <ClientApiController>(); }