Example #1
0
        public void GetParticipantsInStudyDB_WithInvalidInput_ResulstIsNotCorrect()
        {
            uut = new ManageParticipantHandler(mockContext.Object);
            var partList = uut.GetParticipantsInStudyDB(10);

            Assert.That(partList.Count == 0);
        }
Example #2
0
        public void GetParticipantsInStudyDB_WithhValidInput_ResulstIsCorrect()
        {
            uut = new ManageParticipantHandler(mockContext.Object);
            var partList = uut.GetParticipantsInStudyDB(1);

            Assert.AreEqual(partList[0].Email, "*****@*****.**");
        }