Ejemplo n.º 1
0
        public void GetPredictions_Valid_GetsPredictions()
        {
            var repo   = new Mock <IBetRepository>();
            var bookie = new BookMaker(repo.Object);
            var result = bookie.GetPredictions(ValidBet);

            repo.Verify(m => m.GetPredictions(It.IsAny <Bet>()));
        }
Ejemplo n.º 2
0
        public void GetPredictions_DefaultBet_ThrowsArgumentException()
        {
            var bookie = new BookMaker();

            Assert.Throws <ArgumentException>(() => bookie.GetPredictions(new Bet()));
        }
Ejemplo n.º 3
0
        public void GetPredictions_NullBet_ThrowsNullException()
        {
            var bookie = new BookMaker();

            Assert.Throws <ArgumentNullException>(() => bookie.GetPredictions(null));
        }