public void BetBL_GetTotalAmount_ReturnValue()
        {
            //arrange
            var expectedValue = 40;
            var bets          = new List <Bet> {
                new Bet {
                    CustomerId = 1, HorseId = 1, RaceId = 1, Stake = 12
                },
                new Bet {
                    CustomerId = 1, HorseId = 2, RaceId = 1, Stake = 1
                },
                new Bet {
                    CustomerId = 2, HorseId = 1, RaceId = 1, Stake = 2
                },
                new Bet {
                    CustomerId = 3, HorseId = 2, RaceId = 1, Stake = 25
                }
            };
            var bl = new BetBL(_mockBetRepository.Object);

            _mockBetRepository.Setup(x => x.All()).Returns(bets);
            //act
            var result = bl.GetTotalAmount();

            //assert
            Assert.AreEqual(expectedValue, result);
        }
        public void BetBL_GetTotalAmount_ReturnZero()
        {
            //arrange
            var        expectedValue = 0;
            List <Bet> bets          = null;
            var        bl            = new BetBL(_mockBetRepository.Object);

            _mockBetRepository.Setup(x => x.All()).Returns(bets);
            //act
            var result = bl.GetTotalAmount();

            //assert
            Assert.AreEqual(expectedValue, result);
        }