public static CorrespondentForNotices Create(ISettings settings) { CorrespondentForNotices correspondentForNotices = new CorrespondentForNotices(); if (RandomHelper.OneIn(2)) { correspondentForNotices.ContactDetails = ContactDetails.Create(settings, true); } return(correspondentForNotices); }
public static CorrespondentForNotices Create(ISettings settings) { CorrespondentForNotices correspondentForNotices = new CorrespondentForNotices(); if (RandomHelper.OneIn(2)) { correspondentForNotices.ContactDetails = ContactDetails.Create(settings, true); } return correspondentForNotices; }
public static ProducerBusiness Create(ISettings settings, bool noCompany) { ProducerBusiness producerBusiness = new ProducerBusiness(); producerBusiness.CorrespondentForNotices = CorrespondentForNotices.Create(settings); if (noCompany || RandomHelper.OneIn(2)) { producerBusiness.Partnership = Partnership.Create(settings); } else { producerBusiness.Company = Company.Create(settings); } return(producerBusiness); }
public ProducerBusiness() { CorrespondentForNotices = new CorrespondentForNotices(); }