示例#1
0
        public void GetInvitationById_NegativeTest()
        {
            invitationCollection = GetEmptyInviteCollection();
            invitationCollection.AddInvitation(invitation, customer);
            var id     = Guid.NewGuid().ToString();
            var invite = invitationCollection.GetInvitationById(id);

            Assert.IsNull(invite);
        }
示例#2
0
        public void GetInvitationById_PostiveTest()
        {
            invitationCollection = GetEmptyInviteCollection();
            invitationCollection.AddInvitation(invitation, customer);
            var id     = invitation.InvitationId;
            var invite = (Invitation)invitationCollection.GetInvitationById(id);

            Assert.AreEqual(id, invite.InvitationId);
        }