예제 #1
0
        public ContractService(
            IServiceProvider serviceProvider,
            IOrganizationService organizationService,
            IOrganizationAccountManagerService amService,
            IOrganizationProjectManagerService pmService,
            IOrganizationRecruiterService reService,
            IOrganizationMarketerService maService,
            IOrganizationContractorService coService,
            IOrganizationCustomerService cuService,
            IUserInfo userInfo,
            MultiContractEventHandler multiHandler,
            StoryEventHandlers storyEvents,
            ILogger <ContractService> logger) : base(serviceProvider)
        {
            _organizationService = organizationService;
            _amService           = amService;
            _pmService           = pmService;
            _reService           = reService;
            _maService           = maService;
            _coService           = coService;
            _cuService           = cuService;
            _userInfo            = userInfo;
            _logger = logger;

            _projectRepository    = UnitOfWork.RepositoryAsync <Project>();
            _recruitingAgreements = UnitOfWork.RepositoryAsync <RecruitingAgreement>();
            _customerAccounts     = UnitOfWork.RepositoryAsync <CustomerAccount>();

            AddEventHandler(multiHandler, storyEvents);
        }
 public OrganizationController(
     IOrganizationMarketer orgMarketer,
     IOrganizationMarketerService marketerService,
     IServiceProvider provider) : base(provider)
 {
     _orgMarketer     = orgMarketer;
     _marketerService = marketerService;
 }
예제 #3
0
 public MarketerController(
     IServiceProvider serviceProvider,
     IOrganizationAccountManager accountManager,
     IOrganizationMarketerService marketerService
     ) : base(serviceProvider)
 {
     _accountManager  = accountManager;
     _marketerService = marketerService;
 }
예제 #4
0
 public MarketerController(
     IServiceProvider serviceProvider,
     IAgencyOwner agencyOwner,
     IOrganizationMarketerService marketerService
     ) : base(serviceProvider)
 {
     _agencyOwner     = agencyOwner;
     _marketerService = marketerService;
 }
예제 #5
0
 public TimeMatrixService(AppDbContext context, IOrganizationContractorService contractorService,
                          IOrganizationRecruiterService recruiterService, IOrganizationMarketerService marketerService,
                          IOrganizationProjectManagerService projectManagerService,
                          IOrganizationAccountManagerService accountManagerService, IOrganizationCustomerService customerService,
                          IContractService contractService, IProjectService projectService, IStoryService storyService,
                          MapperConfiguration mapperConfiguration)
 {
     _mapperConfiguration   = mapperConfiguration;
     _context               = context;
     _contractorService     = contractorService;
     _recruiterService      = recruiterService;
     _marketerService       = marketerService;
     _projectManagerService = projectManagerService;
     _accountManagerService = accountManagerService;
     _customerService       = customerService;
     _contractService       = contractService;
     _projectService        = projectService;
     _storyService          = storyService;
 }
예제 #6
0
 public PeopleController(
     IOrganizationMarketerService marketerService,
     IOrganizationRecruiterService recruiterService,
     IOrganizationProjectManagerService projectManagerService,
     IOrganizationAccountManagerService accountManagerService,
     IOrganizationCustomerService customerService,
     IOrganizationContractorService contractorService,
     IOrganizationPersonService personService,
     IOrganizationAccountManager accountManager,
     IServiceProvider serviceProvider) : base(serviceProvider)
 {
     _marketerService       = marketerService;
     _recruiterService      = recruiterService;
     _projectManagerService = projectManagerService;
     _accountManagerService = accountManagerService;
     _customerService       = customerService;
     _contractorService     = contractorService;
     _accountManager        = accountManager;
     _personService         = personService;
 }
예제 #7
0
        public LeadService(IServiceProvider unitOfWork,
                           Lazy <IUserInfo> userInfo,
                           ICustomerAccountService accountService,
                           ILogger <LeadService> logger,
                           IIndividualBonusIntentService individualBonusIntents,
                           IOrganizationBonusIntentService organizationBonusIntents,
                           MultiLeadEventHandler multiHandler,
                           IOrganizationMarketerService marketerService) : base(unitOfWork)
        {
            _userInfo                 = userInfo;
            _accountService           = accountService;
            _logger                   = logger;
            _individualBonusIntents   = individualBonusIntents;
            _organizationBonusIntents = organizationBonusIntents;
            _marketerService          = marketerService;
            _marketingAgreements      = UnitOfWork.RepositoryAsync <MarketingAgreement>();
            _customers                = UnitOfWork.RepositoryAsync <Customer>();
            _applicationUsers         = UnitOfWork.RepositoryAsync <ApplicationUser>();
            _organizations            = UnitOfWork.RepositoryAsync <Organization>();

            AddEventHandler(multiHandler);
        }
예제 #8
0
 public LeadController(ILeadService leadService, IOrganizationMarketerService marketerService)
 {
     _marketerService = marketerService;
     _leadService     = leadService;
 }