public GraphNode(ITask task, IGraphNodePrinter printer, GraphNodeOptions options) { _printer = printer; Task = task; Size = options.Size; VerticalConnectorBottomHeight = options.VerticalConnectorBottomHeight; VerticalConnectorTopHeight = options.VerticalConnectorTopHeight; HorizontalConnectorHeight = options.HorizontalConnectorHeight; if (task.Children == null) { return; } foreach (var child in task.Children) { Children.Add(new GraphNode(child, printer, options)); } }
public void BeforeEach() { _printer = Substitute.For <IGraphNodePrinter>(); }