Esempio n. 1
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);
        }