public EmployerAllocationsCommand(IAllocationsCommand allocationsCommand, IAllocationsQuery allocationsQuery, ICreditsQuery creditsQuery, IEmployerCreditsQuery employerCreditsQuery) { _allocationsCommand = allocationsCommand; _allocationsQuery = allocationsQuery; _creditsQuery = creditsQuery; _employerCreditsQuery = employerCreditsQuery; }
public EmailEmployerNewsletterTask(IEmailsCommand emailsCommand, IEmployersQuery employersQuery, IUserAccountsQuery userAccountsQuery, IAllocationsQuery allocationsQuery, IRecruitersQuery recruitersQuery) : base(EventSource, emailsCommand) { _employersQuery = employersQuery; _userAccountsQuery = userAccountsQuery; _allocationsQuery = allocationsQuery; _recruitersQuery = recruitersQuery; }
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; }
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; }
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; }
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; }
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; }
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())); }
public static void DeallocateAll(this IAllocationsCommand allocationsCommand, IAllocationsQuery allocationsQuery, Guid ownerId) { foreach (var allocation in allocationsQuery.GetActiveAllocations(ownerId)) { allocationsCommand.Deallocate(allocation.Id); } }
public EmployerCreditsQuery(ICreditsQuery creditsQuery, IAllocationsQuery allocationsQuery, IRecruitersQuery recruitersQuery) : base(creditsQuery, allocationsQuery) { _recruitersQuery = recruitersQuery; }
protected EmployerCreditsComponent(ICreditsQuery creditsQuery, IAllocationsQuery allocationsQuery) { _creditsQuery = creditsQuery; _allocationsQuery = allocationsQuery; }