public EmployerAccountsCommand(IEmployersCommand employersCommand, IEmployersQuery employersQuery, ILoginCredentialsCommand loginCredentialsCommand, ILoginCredentialsQuery loginCredentialsQuery, IJobPostersCommand jobPostersCommand, ILinkedInCommand linkedInCommand) { _employersCommand = employersCommand; _employersQuery = employersQuery; _loginCredentialsCommand = loginCredentialsCommand; _loginCredentialsQuery = loginCredentialsQuery; _jobPostersCommand = jobPostersCommand; _linkedInCommand = linkedInCommand; }
public static Employer CreateTestEmployer(this IEmployersCommand employersCommand, string emailAddress, string firstName, string lastName, IOrganisation organisation) { return(employersCommand.CreateTestEmployer( emailAddress, firstName, lastName, EmployerSubRole.Employer, organisation)); }
public static Employer CreateTestRecruiter(this IEmployersCommand employersCommand, IOrganisation organisation) { return(employersCommand.CreateTestEmployer( string.Format(EmailAddressFormat, 0), string.Format(FirstNameFormat, 0), string.Format(LastNameFormat, 0), EmployerSubRole.Recruiter, organisation)); }
private static Employer CreateTestEmployer(this IEmployersCommand employersCommand, string emailAddress, string firstName, string lastName, EmployerSubRole subRole, IOrganisation organisation) { var employer = new Employer { IsEnabled = true, IsActivated = true, EmailAddress = new EmailAddress { Address = emailAddress, IsVerified = true }, PhoneNumber = new PhoneNumber { Number = DefaultPhoneNumber, Type = PhoneNumberType.Work }, FirstName = firstName, LastName = lastName, Organisation = organisation, SubRole = subRole, }; employersCommand.CreateEmployer(employer); return(employer); }