You need to sign in to do that
Don't have an account?
VF
code coverage for the below code
if(contactID != null)
{
Contact contact = [Select Id, HasOptedOutOfEmail from contact WHERE Id=:obj.Contact__c];
if(contact.HasOptedOutOfEmail == true)
{
system.assertEquals(contact.HasOptedOutOfEmail , true);
}
else
{
system.assertEquals(contact.HasOptedOutOfEmail , true);
}
update contact;
}
thanks
prashanth
dmcheng
What is your question??