public void Setup() { _mockConsole = new MockConsole(); _distanceOfSpecificRoutesCalculator = MockRepository.GenerateStub <ICalculateDistancesOfSpecificRoutes>(); _routesFinder = MockRepository.GenerateStub <IFindRoutes>(); _routesFinder.Stub(r => r.GetRoutes(null, null)).IgnoreArguments().Return(new List <Route>()); _routesFinder.Stub(r => r.GetShortestRoute(null, null)).IgnoreArguments().Return(new Route()); _testScenarioRunner = new TestScenarioRunner(_mockConsole, _distanceOfSpecificRoutesCalculator, _routesFinder); }
public TestScenarioRunner(TextWriter console, ICalculateDistancesOfSpecificRoutes specificRouteDistanceCalculator, IFindRoutes routeFinder) { _console = console; _specificRouteDistanceCalculator = specificRouteDistanceCalculator; _routeFinder = routeFinder; }