static void Main(string[] args) { Stopwatch stopwatch = new Stopwatch(); LineWriter lineWriter = new LineWriter(); DataReader dataReader = new DataReader(); Organogram organogram = new Organogram(lineWriter, dataReader); stopwatch.Start(); organogram.PrintOrganogram(organogram.BuildOrganogram()); stopwatch.Stop(); Console.WriteLine("Elapsed Time is {0} ms", stopwatch.ElapsedMilliseconds); Console.ReadKey(); }
public Organogram(LineWriter lineWriter, DataReader dataReader) { this.lineWriter = lineWriter; this.dataReader = dataReader; }