+ Start a Discussion
KMK91KMK91 

Insert Contact null Data

Hi ,

How to insert Contact null Data in Quote.

Ex : If(quote.contact.MailingCountry == null){
return (Passing error Msg)} how to insert test data for this .

Thanks
KMK
Best Answer chosen by KMK91
Abhishek BansalAbhishek Bansal
Hi,

Follow the below steps:
  1. Create a test contact and do not assign any value to MailingCountry.
  2. Now add one quote for this contact.
In this way you will be able to test the above lines with your test class.

Thanks,
Abhishek Bansal.
Gmail: abhibansal2790@gmail.com
Skype: abhishek.bansal2790
Phone: +917357512102