public void Check_VerifyParticipant_WithInvalidInput_NoParticipantWithThisEmailExists() { uut = new RetrieveAccountHandler(mockContext.Object); var handler = uut.VerifyParticipantDB("*****@*****.**"); Assert.AreEqual(handler.errormessage, "No participant with this email exists"); }
public void Check_VerifyParticipantDB_WithValidInput_SuccesIsTrue() { uut = new RetrieveAccountHandler(mockContext.Object); var handler = uut.VerifyParticipantDB("*****@*****.**"); Assert.IsTrue(handler.success); }
public void Check_VerifyResearcherDB_WithInvalidEmail_SuccesIsFalse() { //Act uut = new RetrieveAccountHandler(mockContext.Object); var handler = uut.VerifyResearcherDB("*****@*****.**"); //Assert Assert.IsFalse(handler.success); }
public void Check_VerifyResearcherDB_WithInvalidInput_NoResearcherWithEmailExsits() { //Act uut = new RetrieveAccountHandler(mockContext.Object); var handler = uut.VerifyResearcherDB("*****@*****.**"); //Assert Assert.AreEqual(handler.errormessage, "No researcher with this email exists"); }
public void Check_VerifyParticipant_WithInvalidInput_SuccesIsFalse() { //Act uut = new RetrieveAccountHandler(mockContext.Object); var handler = uut.VerifyParticipantDB("*****@*****.**"); //Assert Assert.IsFalse(handler.success); }
public void Check_VerifyResearcherDB_WithValidInput_SuccesIsTrue() { //Act uut = new RetrieveAccountHandler(mockContext.Object); var handler = uut.VerifyResearcherDB("*****@*****.**"); //Assert Assert.IsTrue(handler.success); }