public void GivenASystemRunning_WhenCallingRunWithAscendingSortingOption_ThenFileHandlingIsCalled() { // Arrange string inputFileLocation = _fileLocation + "RandomPeopleList.txt"; const string exit = "exit"; const string sortingOption = "-asc"; _mockConsole.SetupSequence(m => m.ReadLine()).Returns(inputFileLocation + sortingOption).Returns(exit); // Act _appLogic.Run(); // Assert _mockFileHandling.Verify(m => m.FileReader(inputFileLocation)); _mockFileHandling.Verify(m => m.FileWriter(OutputFileName, SortingOptions.Asc)); }
static void Main(string[] args) { Bootstrapper.Start(); IAppLogic appLogic = Bootstrapper.Container.Resolve <IAppLogic>(); appLogic.Run(); Bootstrapper.Stop(); }