Exemplo n.º 1
0
        public void InviteMethods()
        {
            Volunteer        v  = (Utility.GetVolunteer());
            VolunteerProject vp = (Utility.GetVolunteerProject());

            Invite i = new Invite(v, vp);

            //Check AcceptMatch
            i.AcceptMatch();

            Assert.AreEqual(true, i.Accepted);

            //Check DeleteMatch
            i.DeleteMatch();

            Assert.IsNull(i.Volunteer);
            Assert.IsNull(i.Project);
        }