public void PrintModel() { Target target = new ConsoleTarget(); LogManager.Configuration.AddTarget("test", target); LogManager.Configuration.AddRule(LogLevel.Trace, LogLevel.Fatal, target); Logger logger = LogManager.GetLogger("test"); SDK.Common.Item root = new SDK.Common.Item("Root"); SDK.Common.Item child1 = new SDK.Common.Item("Child1"); SDK.Common.Item child2 = new SDK.Common.Item("Child2"); root.AddChild(child1); root.AddChild(child2); Utility.PrintModel(logger, root, 0); }
/// <summary> /// Initializes a new instance of the <see cref="MockItemProvider"/> class. /// </summary> /// <param name="providerName">The name of the Item Provider.</param> public MockItemProvider(string providerName) : base(providerName) { ItemRoot = new SDK.Common.Item("Root"); ItemRoot.AddChild(new SDK.Common.Item("Child")); }