public static void DeallocateAll(this IAllocationsCommand allocationsCommand, IAllocationsQuery allocationsQuery, Guid ownerId) { foreach (var allocation in allocationsQuery.GetActiveAllocations(ownerId)) { allocationsCommand.Deallocate(allocation.Id); } }
public EmployerAllocationsCommand(IAllocationsCommand allocationsCommand, IAllocationsQuery allocationsQuery, ICreditsQuery creditsQuery, IEmployerCreditsQuery employerCreditsQuery) { _allocationsCommand = allocationsCommand; _allocationsQuery = allocationsQuery; _creditsQuery = creditsQuery; _employerCreditsQuery = employerCreditsQuery; }
protected AllocationCreditInfo(bool verified, bool hasExpired, CreditAllocation creditAllocation, IEmployerAccountsCommand employerAccountsCommand, IOrganisationsCommand organisationsCommand, ICreditsQuery creditsQuery, IAllocationsCommand allocationsCommand) : base(verified, employerAccountsCommand, organisationsCommand) { _hasExpired = hasExpired; _creditAllocation = creditAllocation; _creditsQuery = creditsQuery; _allocationsCommand = allocationsCommand; }
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 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 OrganisationsApiController(IExecuteOrganisationSearchCommand executeOrganisationSearchCommand, IOrganisationsQuery organisationsQuery, IAllocationsCommand allocationsCommand) { _executeOrganisationSearchCommand = executeOrganisationSearchCommand; _organisationsQuery = organisationsQuery; _allocationsCommand = allocationsCommand; }
public UnlimitedCreditsCreditInfo(bool verified, bool hasExpired, CreditAllocation creditAllocation, IEmployerAccountsCommand employerAccountsCommand, IOrganisationsCommand organisationsCommand, ICreditsQuery creditsQuery, IAllocationsCommand allocationsCommand) : base(verified, hasExpired, creditAllocation, employerAccountsCommand, organisationsCommand, creditsQuery, allocationsCommand) { }
public SomeCreditsUsedCreditCreditInfo(bool verified, bool hasExpired, CreditAllocation creditAllocation, IEmployerAccountsCommand employerAccountsCommand, IOrganisationsCommand organisationsCommand, ICreditsQuery creditsQuery, IAllocationsCommand allocationsCommand, IEmployerCreditsCommand employerCreditsCommand, IEmployerMemberViewsQuery employerMemberViewsQuery) : base(verified, hasExpired, creditAllocation, employerAccountsCommand, organisationsCommand, creditsQuery, allocationsCommand) { _employerCreditsCommand = employerCreditsCommand; _employerMemberViewsQuery = employerMemberViewsQuery; }
public SomeCreditsCreditInfo(int quantity, bool verified, bool hasExpired, CreditAllocation creditAllocation, IEmployerAccountsCommand employerAccountsCommand, IOrganisationsCommand organisationsCommand, ICreditsQuery creditsQuery, IAllocationsCommand allocationsCommand) : base(verified, hasExpired, creditAllocation, employerAccountsCommand, organisationsCommand, creditsQuery, allocationsCommand) { _quantity = quantity; }