Exemple #1
0
        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;
        }
Exemple #3
0
        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);
        }
Exemple #4
0
 public ProducerBusiness()
 {
     CorrespondentForNotices = new CorrespondentForNotices();
 }
 public ProducerBusiness()
 {
     CorrespondentForNotices = new CorrespondentForNotices();
 }