Exemplo n.º 1
0
 public static void DeallocateAll(this IAllocationsCommand allocationsCommand, IAllocationsQuery allocationsQuery, Guid ownerId)
 {
     foreach (var allocation in allocationsQuery.GetActiveAllocations(ownerId))
     {
         allocationsCommand.Deallocate(allocation.Id);
     }
 }
Exemplo n.º 2
0
 public EmployerAllocationsCommand(IAllocationsCommand allocationsCommand, IAllocationsQuery allocationsQuery, ICreditsQuery creditsQuery, IEmployerCreditsQuery employerCreditsQuery)
 {
     _allocationsCommand   = allocationsCommand;
     _allocationsQuery     = allocationsQuery;
     _creditsQuery         = creditsQuery;
     _employerCreditsQuery = employerCreditsQuery;
 }
Exemplo n.º 3
0
 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;
 }
Exemplo n.º 4
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;
 }
Exemplo n.º 5
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;
 }
Exemplo n.º 6
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;
 }
Exemplo n.º 7
0
 public OrganisationsApiController(IExecuteOrganisationSearchCommand executeOrganisationSearchCommand, IOrganisationsQuery organisationsQuery, IAllocationsCommand allocationsCommand)
 {
     _executeOrganisationSearchCommand = executeOrganisationSearchCommand;
     _organisationsQuery = organisationsQuery;
     _allocationsCommand = allocationsCommand;
 }
Exemplo n.º 8
0
 public UnlimitedCreditsCreditInfo(bool verified, bool hasExpired, CreditAllocation creditAllocation, IEmployerAccountsCommand employerAccountsCommand, IOrganisationsCommand organisationsCommand, ICreditsQuery creditsQuery, IAllocationsCommand allocationsCommand)
     : base(verified, hasExpired, creditAllocation, employerAccountsCommand, organisationsCommand, creditsQuery, allocationsCommand)
 {
 }
Exemplo n.º 9
0
 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;
 }
Exemplo n.º 10
0
 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;
 }