+ Start a Discussion
ManjusrinuManjusrinu 

test class creation for checking with contact email field

Hi All,

I need to have a test class for the below task

At the time of contact insertion/updation, check with the email field, if email already exist in database then throw an error.

Can anyone help me how to figure out that ?