private static bool InstanceTestParser(string text, IDictionary <string, object> instances, ICollection <Connection> connections, Scope scope) { instances["foo"] = new InstanceFoo { Id = "foo", Values = new[] { 1, 2, 3 } }; instances["bar"] = new InstanceBar { Id = "bar", Values = new[] { "1", "2", "3" } }; connections.Add(new Connection { Source = "foo", Target = "bar", InputConnector = "input", OutputConnector = "output" }); connections.Add(new Connection { Source = "bar", Target = "foo", InputConnector = "input", OutputConnector = "output" }); return(true); }
private static bool InstanceTestParser(string text, IDictionary<string, object> instances, ICollection<Connection> connections, Scope scope) { instances["foo"] = new InstanceFoo { Id = "foo", Values = new[] { 1, 2, 3 } }; instances["bar"] = new InstanceBar { Id = "bar", Values = new[] { "1", "2", "3" } }; connections.Add(new Connection { Source = "foo", Target = "bar", InputConnector = "input", OutputConnector = "output" }); connections.Add(new Connection { Source = "bar", Target = "foo", InputConnector = "input", OutputConnector = "output" }); return true; }