static void Main(string[] args) { Console.WriteLine("I'm doing some very important stuff!"); var fileReader = new TextFileReader("../../../input.txt"); var stuff = new ImportantStuff(); var result = stuff.DoWhatNeedsToBeDone(fileReader); Console.WriteLine($"Result is {result}"); }
static void Main(string[] args) { Console.WriteLine("I'm doing some very important stuff!"); var fileReader = new EmptyFileReader(); var stuff = new ImportantStuff(); var result = stuff.DoWhatNeedsToBeDone(fileReader); Console.WriteLine($"Result is {result}"); // Wait for input Console.ReadLine(); }