示例#1
0
 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()
            };
        }