示例#1
0
        public bool NewGame()
        {
            bingoCard = _bingoCardService.GetGameCard(_totalRows, _totalCols);
            _bingoBankService.Reset();

            return(true);
        }
示例#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()
            };
        }