Example #1
0
        public async Task IsBeggined_ForFutureMatch_ShoudReturnFalse()
        {
            var bet = new BetMatch()
            {
                Match = new Match()
                {
                    Date = DateTime.Now.AddDays(1)
                }
            };

            this.dbContext.BetsForMatch.Add(bet);
            this.dbContext.SaveChanges();

            var service = new BetService(this.dbContext, null);

            var result = await service.IsBeggined(false, bet.Id);

            Assert.IsFalse(result);
        }