コード例 #1
0
ファイル: BingoGame.cs プロジェクト: edvinkugelberg-ff/CIKQ
 public BingoGame(int totalRows, int totalCols, IRandom random, IBingoBankService bingoBankService, IBingoCardService bingoCardService)
 {
     _totalCols        = totalCols;
     _totalRows        = totalRows;
     _bingoCardService = bingoCardService;
     _bingoBankService = bingoBankService;
 }
コード例 #2
0
        public void Setup()
        {
            A.CallTo(() => _random.Next())
            .Returns(1);

            _bankService = new BingoBankService(_random, 5);
            _result1     = new List <int>
            {
                _bankService.Pull(),
                    _bankService.Pull(),
                    _bankService.Pull(),
                    _bankService.Pull(),
                    _bankService.Pull()
            };

            _bankService.Reset();

            _result2 = new List <int>
            {
                _bankService.Pull(),
                    _bankService.Pull(),
                    _bankService.Pull(),
                    _bankService.Pull(),
                    _bankService.Pull()
            };
        }