public Dispatcher(IErrorDisplayer errorDisplayer, IResultDisplayer resultDisplayer, ISolverFactory solverFactory, ITriangleChecker triangleChecker, ITriangleReader triangleReader) { _errorDisplayer = errorDisplayer; _resultDisplayer = resultDisplayer; _solverFactory = solverFactory; _triangleChecker = triangleChecker; _triangleReader = triangleReader; }
public ResultDisplayerTests() { _configMock = new Mock <IOptions <AppSettings> >(); _consoleWrapperMock = new Mock <IConsoleWrapper>(); _configMock.Setup(x => x.Value) .Returns(new AppSettings { MaximalValue = 99 }); _sut = new ResultDisplayer(_configMock.Object, _consoleWrapperMock.Object); }