Exemplo n.º 1
0
        public void DolotteryOneUser()
        {
            LotteryTicket expected = new LotteryTicket("T100", "L100", 0, 100, 100, handler.GetUserIDFromUserName("Arik1"));

            tickets.AddLast(expected);
            handler.AddLotteryTicket(expected);
            LotteryToDelete.TotalMoneyPayed = 100;
            LotteryTicket find = LotteryToDelete.Dolottery();

            expected.myStatus = LotteryTicketStatus.Winning;
            Assert.AreEqual(expected, find);
        }