public CustomerDomain(ICustomerBLL <CustomerInfoModel> customerBll, IContactInfoBLL <ContactInfoModel> contactBll, IContactIdentificationInfoBLL <IdentificationModel> identificationInfoBll, ICorporationBLL <CorporationModel> corporationBll) { _customerBll = customerBll; _contactBll = contactBll; _identificationInfoBll = identificationInfoBll; _corporationBll = corporationBll; }
public ICustomerDomain CreatePassengerInfoDomainObj() { ICustomerBLLFactory factory = new CustomerBLLFactory(); ICustomerBLL <CustomerInfoModel> bll = factory.CreateBllObj(); IContactInfoBLLFactory contactInfoBllFactory = new ContactInfoBLLFactory(); IContactInfoBLL <ContactInfoModel> contactInfoBll = contactInfoBllFactory.CreateBllObj(); IContactIdentificationInfoBLLFactory identificationInfoBllFactory = new ContactIdentificationInfoBLLFactory(); IContactIdentificationInfoBLL <IdentificationModel> identificationInfoBll = identificationInfoBllFactory.CreateBllObj(); ICorporationBLLFactory corporationBllFactory = new CorporationBLLFactory(); ICorporationBLL <CorporationModel> corporationBll = corporationBllFactory.CreateBllObj(); return(new CustomerDomain(bll, contactInfoBll, identificationInfoBll, corporationBll)); }