Ejemplo n.º 1
0
        public void RemoveParticipantFromStudyDB_WithInvalidInput_SuccesIsFalse()
        {
            uut = new ManageParticipantHandler(mockContext.Object);
            var dbrecept = uut.RemoveParticipantFromStudyDB(10, 1);

            Assert.IsFalse(dbrecept.success);
        }
Ejemplo n.º 2
0
        public void RemoveParticipantFromStudyDB_WithInvalidInput_Participantisnotenrolledinstudy()
        {
            uut = new ManageParticipantHandler(mockContext.Object);
            var dbrecept = uut.RemoveParticipantFromStudyDB(10, 1);

            Assert.AreEqual(dbrecept.errormessage, "Participant is not enrolled in study");
        }