Esempio n. 1
0
        public void GetMessagesToPlayerTest()
        {
            MessageDAO target = new MessageDAO();
            PlayerDAO  player = new PlayerDAO();

            Message message = CreateMessage();

            target.InsertMessage(message);
            List <Message> inserted = target.GetMessagesToPlayer(playerTo.PlayerId);

            Assert.IsTrue(inserted.Count == 1);
            target.RemoveMessage(inserted[0].MessageId);
        }