Beispiel #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 CustomerController(
     IOrganizationAccountManager accountManager,
     IOrganizationCustomerService customerService,
     IServiceProvider serviceProvider) : base(serviceProvider)
 {
     _organizationAccountManager = accountManager;
     _customerService            = customerService;
 }
 public CustomerController(
     IOrganizationProjectManager projectManager,
     IOrganizationCustomerService customerService,
     IServiceProvider serviceProvider) : base(serviceProvider)
 {
     _projectManager  = projectManager;
     _customerService = customerService;
 }
Beispiel #4
0
 public CustomerController(
     IAgencyOwner agencyOwner,
     IOrganizationCustomerService customerService,
     IServiceProvider serviceProvider) : base(serviceProvider)
 {
     _agencyOwner     = agencyOwner;
     _customerService = customerService;
 }
 public OrganizationController(
     IOrganizationCustomerService customerService,
     IOrganizationService organizationService,
     ILogger <OrganizationController> logger,
     IOrganizationCustomer customer,
     IServiceProvider serviceProvider) : base(serviceProvider)
 {
     _customerService     = customerService;
     _customer            = customer;
     _organizationService = organizationService;
     _logger = logger;
 }
 public OrganizationController(IPersonService personService,
                               IHostingEnvironment hostingEnvironment,
                               ICustomerAccountService customerAccountService,
                               IOrganizationCustomerService organizationCustomerService,
                               UserManager <ApplicationUser> userManager,
                               IOrganizationService service,
                               ICustomerService customerService, IOptions <AppSettings> settings)
 {
     _service                     = service;
     _customerService             = customerService;
     _settings                    = settings;
     _hostingEnvironment          = hostingEnvironment;
     _customerAccountService      = customerAccountService;
     _organizationCustomerService = organizationCustomerService;
     _personService               = personService;
     _userManager                 = userManager;
 }
 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;
 }
Beispiel #8
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;
 }
Beispiel #9
0
 public CustomerAccountService(
     IServiceProvider serviceProvider,
     IOrganizationCustomerService customerService,
     IOrganizationService organizationService,
     IOrganizationPersonService orgPersonService,
     IPersonService personService,
     IUserInfo userInfo,
     ILogger <CustomerAccountService> logger,
     IOrganizationAccountManagerService accountManagerService)
     : base(serviceProvider)
 {
     _customerService     = customerService;
     _organizationService = organizationService;
     _personService       = personService;
     _userInfo            = userInfo;
     _logger = logger;
     _accountManagerService = accountManagerService;
     _marketingAgreements   = UnitOfWork.RepositoryAsync <MarketingAgreement>();
     _customers             = UnitOfWork.RepositoryAsync <Customer>();
     _organizations         = UnitOfWork.RepositoryAsync <Organization>();
     _leads            = UnitOfWork.RepositoryAsync <Lead>();
     _applicationUsers = UnitOfWork.RepositoryAsync <ApplicationUser>();
 }