コード例 #1
0
 public static Employer CreateTestEmployer(this IEmployerAccountsCommand employersCommand, string loginId, string firstName, string lastName, IOrganisation organisation)
 {
     return(employersCommand.CreateTestEmployer(
                loginId,
                firstName,
                lastName,
                EmployerSubRole.Employer,
                organisation));
 }
コード例 #2
0
 public static Employer CreateTestRecruiter(this IEmployerAccountsCommand employersCommand, string loginId, IOrganisation organisation)
 {
     return(employersCommand.CreateTestEmployer(
                loginId,
                string.Format(FirstNameFormat, 0),
                string.Format(LastNameFormat, 0),
                EmployerSubRole.Recruiter,
                organisation));
 }
コード例 #3
0
 public static Employer CreateTestRecruiter(this IEmployerAccountsCommand employersCommand, int index, IOrganisation organisation)
 {
     return(employersCommand.CreateTestEmployer(
                string.Format(UserIdFormat, index),
                string.Format(FirstNameFormat, index),
                string.Format(LastNameFormat, index),
                EmployerSubRole.Recruiter,
                organisation));
 }
コード例 #4
0
 private static Employer CreateTestEmployer(this IEmployerAccountsCommand employersCommand, string loginId, string firstName, string lastName, EmployerSubRole subRole, IOrganisation organisation)
 {
     return(CreateTestEmployer(
                employersCommand,
                loginId,
                firstName,
                lastName,
                string.Format(EmailAddressFormat, loginId),
                subRole,
                organisation));
 }
コード例 #5
0
 public MaintainEmployersController(IUserAccountsCommand userAccountsCommand, ILoginCredentialsCommand loginCredentialsCommand, ILoginCredentialsQuery loginCredentialsQuery, IEmployerAccountsCommand employerAccountsCommand, IEmployersQuery employersQuery, IOrganisationsQuery organisationsQuery, IPhoneNumbersQuery phoneNumbersQuery, IExecuteEmployerSearchCommand executeEmployerSearchCommand, IEmailsCommand emailsCommand, IAccountReportsQuery accountReportsQuery)
 {
     _userAccountsCommand          = userAccountsCommand;
     _loginCredentialsCommand      = loginCredentialsCommand;
     _loginCredentialsQuery        = loginCredentialsQuery;
     _employerAccountsCommand      = employerAccountsCommand;
     _employersQuery               = employersQuery;
     _organisationsQuery           = organisationsQuery;
     _phoneNumbersQuery            = phoneNumbersQuery;
     _executeEmployerSearchCommand = executeEmployerSearchCommand;
     _emailsCommand       = emailsCommand;
     _accountReportsQuery = accountReportsQuery;
 }
コード例 #6
0
 public OrganisationsController(IOrganisationsCommand organisationsCommand, IOrganisationsQuery organisationsQuery, ILoginCredentialsQuery loginCredentialsQuery, IAdministratorsQuery administratorsQuery, IEmployerAccountsCommand employerAccountsCommand, IEmployersQuery employersQuery, IExecuteOrganisationSearchCommand executeOrganisationSearchCommand, ICommunitiesQuery communitiesQuery, IIndustriesQuery industriesQuery, IPhoneNumbersQuery phoneNumbersQuery, ILocationQuery locationQuery, ISettingsQuery settingsQuery, ISettingsCommand settingsCommand, IEmailsCommand emailsCommand, IAccountReportsQuery accountReportsQuery)
 {
     _organisationsCommand             = organisationsCommand;
     _organisationsQuery               = organisationsQuery;
     _loginCredentialsQuery            = loginCredentialsQuery;
     _administratorsQuery              = administratorsQuery;
     _employerAccountsCommand          = employerAccountsCommand;
     _employersQuery                   = employersQuery;
     _executeOrganisationSearchCommand = executeOrganisationSearchCommand;
     _communitiesQuery                 = communitiesQuery;
     _industriesQuery                  = industriesQuery;
     _phoneNumbersQuery                = phoneNumbersQuery;
     _locationQuery       = locationQuery;
     _settingsQuery       = settingsQuery;
     _settingsCommand     = settingsCommand;
     _emailsCommand       = emailsCommand;
     _accountReportsQuery = accountReportsQuery;
 }
コード例 #7
0
 public AccountsManager(ILoginAuthenticationCommand loginAuthenticationCommand, IAuthenticationManager authenticationManager, IDevAuthenticationManager devAuthenticationManager, IMemberAccountsCommand memberAccountsCommand, IEmployerAccountsCommand employerAccountsCommand, IOrganisationsCommand organisationsCommand, ILoginCredentialsQuery loginCredentialsQuery, ILocationQuery locationQuery, IIndustriesQuery industriesQuery, IPhoneNumbersQuery phoneNumbersQuery, ICommunitiesQuery communitiesQuery, IVerticalsQuery verticalsQuery, IPartnersQuery partnersQuery, ICookieManager cookieManager, IReferralsManager referralsManager, IProfilesCommand profilesCommand, IProfilesQuery profilesQuery)
 {
     _loginAuthenticationCommand = loginAuthenticationCommand;
     _authenticationManager      = authenticationManager;
     _devAuthenticationManager   = devAuthenticationManager;
     _memberAccountsCommand      = memberAccountsCommand;
     _employerAccountsCommand    = employerAccountsCommand;
     _organisationsCommand       = organisationsCommand;
     _loginCredentialsQuery      = loginCredentialsQuery;
     _locationQuery     = locationQuery;
     _industriesQuery   = industriesQuery;
     _phoneNumbersQuery = phoneNumbersQuery;
     _communitiesQuery  = communitiesQuery;
     _verticalsQuery    = verticalsQuery;
     _partnersQuery     = partnersQuery;
     _cookieManager     = cookieManager;
     _referralsManager  = referralsManager;
     _profilesCommand   = profilesCommand;
     _profilesQuery     = profilesQuery;
 }
コード例 #8
0
        private static Employer CreateTestEmployer(this IEmployerAccountsCommand employersCommand, string loginId, string firstName, string lastName, string emailAddress, EmployerSubRole subRole, IOrganisation organisation)
        {
            var employer = new Employer
            {
                EmailAddress = new EmailAddress {
                    Address = emailAddress
                },
                IsActivated = true,
                IsEnabled   = true,
                PhoneNumber = new PhoneNumber {
                    Number = DefaultPhoneNumber, Type = PhoneNumberType.Mobile
                },
                FirstName    = firstName,
                LastName     = lastName,
                Organisation = organisation,
                SubRole      = subRole,
            };

            employersCommand.CreateTestEmployer(employer, loginId);
            return(employer);
        }
コード例 #9
0
 public SettingsController(IEmployerAccountsCommand employerAccountsCommand, IOrganisationsCommand organisationsCommand, IOrganisationsQuery organisationsQuery, IPhoneNumbersQuery phoneNumbersQuery, IIndustriesQuery industriesQuery, ILoginCredentialsCommand loginCredentialsCommand, ILoginCredentialsQuery loginCredentialsQuery, IAuthenticationManager authenticationManager, ICreditsQuery creditsQuery, IEmployerCreditsQuery employerCreditsQuery, IJobPostersCommand jobPostersCommand, IJobPostersQuery jobPostersQuery, INonMemberSettingsCommand nonMemberSettingsCommand, INonMemberSettingsQuery nonMemberSettingsQuery, ISettingsCommand settingsCommand, ISettingsQuery settingsQuery, ILinkedInCommand linkedInCommand, ILinkedInQuery linkedInQuery)
 {
     _employerAccountsCommand  = employerAccountsCommand;
     _authenticationManager    = authenticationManager;
     _creditsQuery             = creditsQuery;
     _employerCreditsQuery     = employerCreditsQuery;
     _jobPostersQuery          = jobPostersQuery;
     _nonMemberSettingsQuery   = nonMemberSettingsQuery;
     _settingsQuery            = settingsQuery;
     _linkedInQuery            = linkedInQuery;
     _linkedInCommand          = linkedInCommand;
     _nonMemberSettingsCommand = nonMemberSettingsCommand;
     _jobPostersCommand        = jobPostersCommand;
     _settingsCommand          = settingsCommand;
     _loginCredentialsCommand  = loginCredentialsCommand;
     _loginCredentialsQuery    = loginCredentialsQuery;
     _industriesQuery          = industriesQuery;
     _phoneNumbersQuery        = phoneNumbersQuery;
     _organisationsCommand     = organisationsCommand;
     _organisationsQuery       = organisationsQuery;
 }
コード例 #10
0
ファイル: CreditInfo.cs プロジェクト: formist/LinkMe
 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;
 }
コード例 #11
0
 private static void CreateTestEmployer(this IEmployerAccountsCommand employersCommand, Employer employer, string loginId)
 {
     employersCommand.CreateEmployer(employer, new LoginCredentials {
         LoginId = loginId, PasswordHash = LoginCredentials.HashToString(DefaultPassword)
     });
 }
コード例 #12
0
ファイル: CreditInfo.cs プロジェクト: formist/LinkMe
 public NoAllocationsCreditInfo(bool verified, IEmployerAccountsCommand employerAccountsCommand, IOrganisationsCommand organisationsCommand)
     : base(verified, employerAccountsCommand, organisationsCommand)
 {
 }
コード例 #13
0
ファイル: CreditInfo.cs プロジェクト: formist/LinkMe
 public AnonymousCreditInfo(IEmployerAccountsCommand employerAccountsCommand, IOrganisationsCommand organisationsCommand)
     : base(false, employerAccountsCommand, organisationsCommand)
 {
 }
コード例 #14
0
ファイル: CreditInfo.cs プロジェクト: formist/LinkMe
 public UnlimitedCreditsCreditInfo(bool verified, bool hasExpired, CreditAllocation creditAllocation, IEmployerAccountsCommand employerAccountsCommand, IOrganisationsCommand organisationsCommand, ICreditsQuery creditsQuery, IAllocationsCommand allocationsCommand)
     : base(verified, hasExpired, creditAllocation, employerAccountsCommand, organisationsCommand, creditsQuery, allocationsCommand)
 {
 }
コード例 #15
0
ファイル: CreditInfo.cs プロジェクト: formist/LinkMe
 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;
 }
コード例 #16
0
ファイル: CreditInfo.cs プロジェクト: formist/LinkMe
 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;
 }
コード例 #17
0
ファイル: CreditInfo.cs プロジェクト: formist/LinkMe
 protected CreditInfo(bool verified, IEmployerAccountsCommand employerAccountsCommand, IOrganisationsCommand organisationsCommand)
 {
     _verified = verified;
     _employerAccountsCommand = employerAccountsCommand;
     _organisationsCommand    = organisationsCommand;
 }