Exemplo n.º 1
0
        public void AddBettorTest()
        {
            var isSuccess = _persistenceService.Add(_testBettor2);

            if (!isSuccess)
            {
                Assert.Fail();
            }
            var bettors = _persistenceService.GetAll();
            var bettor  = bettors.Find(x => x.Nickname.Equals(_testBettor2.Nickname));

            if (!bettor.Equals(_testBettor2))
            {
                Assert.Fail();
            }
        }