I have written 1 trigger which will send an email to the Account owner and the contact whenever a Visit(custom objct child of accnt) record is created.
This is the test class i have written and the code coverage shows 29 %. i am not sure how to include email services in the Test class . can you please help me out.
below is the trigger and test class I have written.
Hello,
I see you have some code branches depending on the Portfolio__c.
Duplicate your testmethod for each value of the Portfolio__c that you are checking in the trigger. This should help raise the coverage above 0.75
Happy Friday,
Adrian