Пример #1
0
 public ScoreController(IScoreReader scoreReader, IScoreWriter scoreWriter, IMatchCalculator matchCalculator, ISetScoreFormatter setScoreFormatter)
 {
     _scoreReader       = scoreReader;
     _scoreWriter       = scoreWriter;
     _matchCalculator   = matchCalculator;
     _setScoreFormatter = setScoreFormatter;
 }
Пример #2
0
        public void Setup()
        {
            _mockScoreReader       = Substitute.For <IScoreReader>();
            _mockScoreWriter       = Substitute.For <IScoreWriter>();
            _mockMatchCalculator   = Substitute.For <IMatchCalculator>();
            _mockSetScoreFormatter = Substitute.For <ISetScoreFormatter>();

            _sut = new ScoreController(_mockScoreReader, _mockScoreWriter, _mockMatchCalculator, _mockSetScoreFormatter);
        }
 public EndGamePortrait(IScoreWriter scoreWriter)
 {
     _register    = new Register();
     _scoreWriter = scoreWriter;
 }