Пример #1
0
 public EmployerAllocationsCommand(IAllocationsCommand allocationsCommand, IAllocationsQuery allocationsQuery, ICreditsQuery creditsQuery, IEmployerCreditsQuery employerCreditsQuery)
 {
     _allocationsCommand   = allocationsCommand;
     _allocationsQuery     = allocationsQuery;
     _creditsQuery         = creditsQuery;
     _employerCreditsQuery = employerCreditsQuery;
 }
Пример #2
0
 public EmailEmployerNewsletterTask(IEmailsCommand emailsCommand, IEmployersQuery employersQuery, IUserAccountsQuery userAccountsQuery, IAllocationsQuery allocationsQuery, IRecruitersQuery recruitersQuery)
     : base(EventSource, emailsCommand)
 {
     _employersQuery    = employersQuery;
     _userAccountsQuery = userAccountsQuery;
     _allocationsQuery  = allocationsQuery;
     _recruitersQuery   = recruitersQuery;
 }
Пример #3
0
 public OrdersCommand(IOrdersRepository repository, IOrderPricesCommand orderPricesCommand, IProductsQuery productsQuery, IAllocationsCommand allocationsCommand, IAllocationsQuery allocationsQuery, IPurchasesCommand purchasesCommand)
 {
     _repository         = repository;
     _orderPricesCommand = orderPricesCommand;
     _productsQuery      = productsQuery;
     _allocationsCommand = allocationsCommand;
     _allocationsQuery   = allocationsQuery;
     _purchasesCommand   = purchasesCommand;
 }
Пример #4
0
 public EmployerCreditsCommand(ICreditsQuery creditsQuery, IAllocationsQuery allocationsQuery, IExercisedCreditsCommand exercisedCreditsCommand, IExercisedCreditsQuery exercisedCreditsQuery, IEmployersQuery employersQuery, IRecruitersQuery recruitersQuery, IJobAdApplicantsQuery jobAdApplicantsQuery, int maxCreditsPerJobAd)
     : base(creditsQuery, allocationsQuery)
 {
     _exercisedCreditsCommand = exercisedCreditsCommand;
     _exercisedCreditsQuery   = exercisedCreditsQuery;
     _employersQuery          = employersQuery;
     _recruitersQuery         = recruitersQuery;
     _jobAdApplicantsQuery    = jobAdApplicantsQuery;
     _maxCreditsPerJobAd      = maxCreditsPerJobAd;
 }
Пример #5
0
 public ProductsController(IEmployerOrdersQuery employerOrdersQuery, IProductsCommand productsCommand, IOrdersQuery ordersQuery, ICreditsQuery creditsQuery, IAllocationsQuery allocationsQuery, IRecruitersQuery recruitersQuery, IOrganisationsQuery organisationsQuery)
 {
     _employerOrdersQuery = employerOrdersQuery;
     _productsCommand     = productsCommand;
     _ordersQuery         = ordersQuery;
     _creditsQuery        = creditsQuery;
     _allocationsQuery    = allocationsQuery;
     _recruitersQuery     = recruitersQuery;
     _organisationsQuery  = organisationsQuery;
 }
Пример #6
0
 public OrganisationCreditsController(IOrganisationsQuery organisationsQuery, IEmployersQuery employersQuery, IMembersQuery membersQuery, IJobAdsQuery jobAdsQuery, IAllocationsQuery allocationsQuery, IAllocationsCommand allocationsCommand, ICreditsQuery creditsQuery, IExercisedCreditsQuery exercisedCreditsQuery, IOrdersQuery ordersQuery)
 {
     _organisationsQuery    = organisationsQuery;
     _employersQuery        = employersQuery;
     _membersQuery          = membersQuery;
     _jobAdsQuery           = jobAdsQuery;
     _allocationsQuery      = allocationsQuery;
     _allocationsCommand    = allocationsCommand;
     _creditsQuery          = creditsQuery;
     _exercisedCreditsQuery = exercisedCreditsQuery;
     _ordersQuery           = ordersQuery;
 }
Пример #7
0
 public CreditsHandler(IEmailsCommand emailsCommand, IEmployersQuery employersQuery, IOrganisationsQuery organisationsQuery, IRecruitersQuery recruitersQuery, IAdministratorsQuery administratorsQuery, IAllocationsCommand allocationsCommand, IAllocationsQuery allocationsQuery, ICreditsQuery creditsQuery, IJobAdsCommand jobAdsCommand, IJobAdsQuery jobAdsQuery)
 {
     _emailsCommand       = emailsCommand;
     _employersQuery      = employersQuery;
     _organisationsQuery  = organisationsQuery;
     _recruitersQuery     = recruitersQuery;
     _administratorsQuery = administratorsQuery;
     _allocationsCommand  = allocationsCommand;
     _allocationsQuery    = allocationsQuery;
     _creditsQuery        = creditsQuery;
     _jobAdsCommand       = jobAdsCommand;
     _jobAdsQuery         = jobAdsQuery;
 }
Пример #8
0
 public static IList <Allocation> GetAllocations(this IAllocationsQuery allocationsQuery, IEnumerable <ExercisedCredit> exercisedCredits)
 {
     return(allocationsQuery.GetAllocations((from c in exercisedCredits where c.AllocationId != null select c.AllocationId.Value).Distinct()));
 }
Пример #9
0
 public static void DeallocateAll(this IAllocationsCommand allocationsCommand, IAllocationsQuery allocationsQuery, Guid ownerId)
 {
     foreach (var allocation in allocationsQuery.GetActiveAllocations(ownerId))
     {
         allocationsCommand.Deallocate(allocation.Id);
     }
 }
Пример #10
0
 public EmployerCreditsQuery(ICreditsQuery creditsQuery, IAllocationsQuery allocationsQuery, IRecruitersQuery recruitersQuery)
     : base(creditsQuery, allocationsQuery)
 {
     _recruitersQuery = recruitersQuery;
 }
Пример #11
0
 protected EmployerCreditsComponent(ICreditsQuery creditsQuery, IAllocationsQuery allocationsQuery)
 {
     _creditsQuery     = creditsQuery;
     _allocationsQuery = allocationsQuery;
 }