public async Task Tree_Builds_FastAsync() { var response = new TreeRequestResponse(TreeRequestScenario.FastPath, true); var client = BaseTest.Initialize_Client(response); var tree = await client.GetTreeAsync(options : TreeParseOption.Common | TreeParseOption.Triggers); }
public async Task Tree_BuildsAsync() { var response = new TreeRequestResponse(TreeRequestScenario.MultiLevelContainer, true); var client = BaseTest.Initialize_Client(response); var tree = await client.GetTreeAsync(1001, options : TreeParseOption.Common | TreeParseOption.Triggers); }
public void Tree_Builds_Fast() { var response = new TreeRequestResponse(TreeRequestScenario.FastPath); var client = BaseTest.Initialize_Client(response); var tree = client.GetTree(options: TreeParseOption.Common | TreeParseOption.Triggers); }
public void Tree_Builds() { var response = new TreeRequestResponse(TreeRequestScenario.MultiLevelContainer); var client = BaseTest.Initialize_Client(response); var tree = client.GetTree(1001); }
public void Tree_Builds_UntypedObject() { var probe = new PrtgObject { Id = 1001 }; var response = new TreeRequestResponse(TreeRequestScenario.ContainerWithChild); var client = BaseTest.Initialize_Client(response); AssertEx.Throws <NotSupportedException>( () => client.GetTree(probe), "Cannot process value" ); }
public void Tree_Builds_OrdersChildPositions_Lazy() { var response = new TreeRequestResponse(TreeRequestScenario.LazyReorderChildren); var client = BaseTest.Initialize_Client(response); var tree = client.GetTreeLazy(1001, TreeParseOption.Common | TreeParseOption.Triggers); TreePrettyPrintTests.Validate(tree, new[] { "Local Probe", "├──dc-1", "│ ├──Sensor1", "│ └──Sensor2", "├──dc-2", "├──Servers", "├──Trigger1", "├──Trigger2", "└──Trigger3" }); }