public FillPerfectController(MyJobLeadsDbContext context, IProcess <GetFillPerfectLicenseByKeyParams, FillPerfectLicenseViewModel> getFpLicenseProc, IProcess <ActivateFillPerfectKeyParams, FillPerfectKeyActivationViewModel> activateFpProc) { _context = context; _getFpLicenseProc = getFpLicenseProc; _activateFpProc = activateFpProc; }
public OrganizationAdminProcesses(MyJobLeadsDbContext context, IProcess <GenerateUserPasswordHashParams, GeneratedPasswordHashViewModel> genPasswordProcess, IProcess <SiteAdminAuthorizationParams, AuthorizationResultViewModel> siteAdminAuthProcess) { _context = context; _generatePasswordProcess = genPasswordProcess; _siteAdminAuthProcess = siteAdminAuthProcess; }
public PositionProcesses(MyJobLeadsDbContext context, IProcess <PositionAuthorizationParams, AuthorizationResultViewModel> positionAuthProcess, IProcess <CompanyQueryAuthorizationParams, AuthorizationResultViewModel> companyAuthProcess) { _context = context; _positionAuthProcess = positionAuthProcess; _companyAuthProcess = companyAuthProcess; }
public UserAdminProcesses(MyJobLeadsDbContext context, IProcess <SiteAdminAuthorizationParams, AuthorizationResultViewModel> siteAdminAuthProc, CreateUserCommand createUserCmd) { _context = context; _siteAdminAuthProc = siteAdminAuthProc; _createUserCmd = createUserCmd; }
public JigsawCompanySearchProcesses(MyJobLeadsDbContext context, CompanyByIdQuery companyQuery, CreateCompanyCommand createCompanyCmd, EditCompanyCommand editCompanyCmd) { _context = context; _companyByIdQuery = companyQuery; _createCompanyCmd = createCompanyCmd; _editCompanyCmd = editCompanyCmd; }
public SyncController(MyJobLeadsDbContext context, ContactByIdQuery contactByIdQuery, EditContactCommand editContactCmd, IProcess <GetJigsawContactDetailsParams, ExternalContactSearchResultsViewModel.ContactResultViewModel> getJsContactProc) { _context = context; _contactByIdQuery = contactByIdQuery; _editContactCmd = editContactCmd; _getJsContactProc = getJsContactProc; }
public JigsawContactSearchProcesses(MyJobLeadsDbContext context, IProcess <GetUserJigsawCredentialsParams, JigsawCredentialsViewModel> getJsCredProc, CreateCompanyCommand createCompanyCmd, CompanyByIdQuery compByIdQuery, CreateContactCommand createContactcmd) { _context = context; _getJigsawCredentialsProc = getJsCredProc; _createCompanyCmd = createCompanyCmd; _companyByIdQuery = compByIdQuery; _createContactCmd = createContactcmd; }
public FpContactResponseController(MyJobLeadsDbContext context, IProcess <FetchFpContactResponseEmailsParams, GeneralSuccessResultViewModel> fetchResponseProc, IProcess <GetFpContactResponsesParams, SearchResultsViewModel <FillPerfectContactResponse> > getDbFpContactResponseProc, IProcess <CreateDemoAccountParams, CreatedDemoAccountViewModel> createDemoActProc, IProcess <SendFpReplyParams, GeneralSuccessResultViewModel> sendFpReplyProc) { _context = context; _fetchResponseProc = fetchResponseProc; _getDbFpContactResponseProc = getDbFpContactResponseProc; _createDemoActProc = createDemoActProc; _sendFpReplyProc = sendFpReplyProc; }
public LinkedInPositionSearchProcesses(MyJobLeadsDbContext context, IProcess <VerifyUserLinkedInAccessTokenParams, UserAccessTokenResultViewModel> verifyLiTokenProcess, CreateCompanyCommand createCompanyCmd, IProcess <CreatePositionParams, PositionDisplayViewModel> createPositionProcess, CompanyByIdQuery companyQuery) { _context = context; _verifyLiTokenProcess = verifyLiTokenProcess; _createCompanyCmd = createCompanyCmd; _createPositionProcess = createPositionProcess; _companyQuery = companyQuery; }
public JigsawController(MyJobLeadsDbContext context, IProcess<GetJigsawUserPointsParams, JigsawUserPointsViewModel> getUserPointsProc, IProcess<SaveJigsawUserCredentialsParams, GeneralSuccessResultViewModel> saveCredentialsProc, IProcess<JigsawContactSearchParams, ExternalContactSearchResultsViewModel> searchContactsProc, IProcess<AddJigsawContactToJobSearchParams, ExternalContactAddedResultViewModel> addContactProc, IProcess<GetJigsawContactDetailsParams, ExternalContactSearchResultsViewModel.ContactResultViewModel> getContactProc) { _context = context; _getUserPointsProc = getUserPointsProc; _saveCredentialsProc = saveCredentialsProc; _searchContacsProc = searchContactsProc; _addContactProc = addContactProc; _getContactProc = getContactProc; }
public JigsawController(MyJobLeadsDbContext context, IProcess <GetJigsawUserPointsParams, JigsawUserPointsViewModel> getUserPointsProc, IProcess <SaveJigsawUserCredentialsParams, GeneralSuccessResultViewModel> saveCredentialsProc, IProcess <JigsawContactSearchParams, ExternalContactSearchResultsViewModel> searchContactsProc, IProcess <AddJigsawContactToJobSearchParams, ExternalContactAddedResultViewModel> addContactProc, IProcess <GetJigsawContactDetailsParams, ExternalContactSearchResultsViewModel.ContactResultViewModel> getContactProc) { _context = context; _getUserPointsProc = getUserPointsProc; _saveCredentialsProc = saveCredentialsProc; _searchContacsProc = searchContactsProc; _addContactProc = addContactProc; _getContactProc = getContactProc; }
public JigsawController(MyJobLeadsDbContext context, IProcess <JigsawCompanySearchParams, SearchResultsViewModel <ExternalCompanySearchResultViewModel> > searchProcess, IProcess <JigsawCompanyDetailsParams, ExternalCompanyDetailsViewModel> companyDetailsProc, IProcess <AddJigsawCompanyParams, CompanyAddedViewResult> addCompProc, IProcess <MergeJigsawCompanyParams, GeneralSuccessResultViewModel> mergeCompProc, CompanyByIdQuery compByIdQuery) { _context = context; _searchProcess = searchProcess; _companyDetailsProcess = companyDetailsProc; _addCompanyProcess = addCompProc; _companyByIdQuery = compByIdQuery; _mergeCompanyProcess = mergeCompProc; }
public PositionController(MyJobLeadsDbContext context, IProcess <CreatePositionParams, PositionDisplayViewModel> createProcess, IProcess <EditPositionParams, PositionDisplayViewModel> editProcess, IProcess <GetPositionListForUserParams, PositionListViewModel> getPositionListProcess, PositionByIdQuery posByIdQuery, CompanyByIdQuery compByIdQuery) { _context = context; _createProcess = createProcess; _editProcess = editProcess; _posByIdQuery = posByIdQuery; _companyByIdQuery = compByIdQuery; _getPositionListProcess = getPositionListProcess; }
public PositionController(MyJobLeadsDbContext context, IProcess<CreatePositionParams, PositionDisplayViewModel> createProcess, IProcess<EditPositionParams, PositionDisplayViewModel> editProcess, IProcess<GetPositionListForUserParams, PositionListViewModel> getPositionListProcess, PositionByIdQuery posByIdQuery, CompanyByIdQuery compByIdQuery) { _context = context; _createProcess = createProcess; _editProcess = editProcess; _posByIdQuery = posByIdQuery; _companyByIdQuery = compByIdQuery; _getPositionListProcess = getPositionListProcess; }
public void Setup() { // Configure entity mappings EntityMapLoader.LoadEntityMappings(); // Initialize the database connection Database.SetInitializer <MyJobLeadsDbContext>(new DropCreateDatabaseAlways <MyJobLeadsDbContext>()); _unitOfWork = new EFUnitOfWork(); _unitOfWork.UnitTestEntities.Fetch().Count(); // Required to make sure database is created outside of transaction scope _context = (_unitOfWork as EFUnitOfWork).DbContext; _transaction = new TransactionScope(); // Create service factory mock _serviceFactory = new Mock <IServiceFactory>(); _serviceFactory.Setup(x => x.GetService <IUnitOfWork>()).Returns(_unitOfWork); }
public void Setup() { // Configure entity mappings EntityMapLoader.LoadEntityMappings(); // Initialize the database connection Database.SetInitializer<MyJobLeadsDbContext>(new DropCreateDatabaseAlways<MyJobLeadsDbContext>()); _unitOfWork = new EFUnitOfWork(); _unitOfWork.UnitTestEntities.Fetch().Count(); // Required to make sure database is created outside of transaction scope _context = (_unitOfWork as EFUnitOfWork).DbContext; _transaction = new TransactionScope(); // Create service factory mock _serviceFactory = new Mock<IServiceFactory>(); _serviceFactory.Setup(x => x.GetService<IUnitOfWork>()).Returns(_unitOfWork); }
public LinkedInController(MyJobLeadsDbContext context, IProcess <VerifyUserLinkedInAccessTokenParams, UserAccessTokenResultViewModel> verifyTokenProcess, IProcess <StartLinkedInUserAuthParams, GeneralSuccessResultViewModel> startLiAuthProcess, IProcess <ProcessLinkedInAuthProcessParams, GeneralSuccessResultViewModel> finishLiAuthProcess, IProcess <LinkedInPositionSearchParams, PositionSearchResultsViewModel> searchProcess, IProcess <LinkedInPositionDetailsParams, ExternalPositionDetailsViewModel> positionDetailsProcess, IProcess <AddLinkedInPositionParams, ExternalPositionAddedResultViewModel> addPositionProcess, CompaniesByJobSearchIdQuery companyByJSQuery) { _context = context; _verifyTokenProcess = verifyTokenProcess; _startLiAuthProcess = startLiAuthProcess; _finishLiAuthProcess = finishLiAuthProcess; _searchProcess = searchProcess; _positionDetailsProcess = positionDetailsProcess; _companyByJobSearchQuery = companyByJSQuery; _addPositionProcess = addPositionProcess; }
public LinkedInController(MyJobLeadsDbContext context, IProcess<VerifyUserLinkedInAccessTokenParams, UserAccessTokenResultViewModel> verifyTokenProcess, IProcess<StartLinkedInUserAuthParams, GeneralSuccessResultViewModel> startLiAuthProcess, IProcess<ProcessLinkedInAuthProcessParams, GeneralSuccessResultViewModel> finishLiAuthProcess, IProcess<LinkedInPositionSearchParams, PositionSearchResultsViewModel> searchProcess, IProcess<LinkedInPositionDetailsParams, ExternalPositionDetailsViewModel> positionDetailsProcess, IProcess<AddLinkedInPositionParams, ExternalPositionAddedResultViewModel> addPositionProcess, CompaniesByJobSearchIdQuery companyByJSQuery) { _context = context; _verifyTokenProcess = verifyTokenProcess; _startLiAuthProcess = startLiAuthProcess; _finishLiAuthProcess = finishLiAuthProcess; _searchProcess = searchProcess; _positionDetailsProcess = positionDetailsProcess; _companyByJobSearchQuery = companyByJSQuery; _addPositionProcess = addPositionProcess; }
public MyJobLeadsBaseConsumerTokenManager(MyJobLeadsDbContext context, TokenProvider tokenProvider, string consumerKeyAppSetting, string consumerSecretAppSetting, int requestingUserId) { if (context == null) { throw new ArgumentNullException("context"); } if (string.IsNullOrWhiteSpace(consumerKeyAppSetting)) { throw new ArgumentNullException("consumerKeyAppSetting"); } if (string.IsNullOrWhiteSpace(consumerSecretAppSetting)) { throw new ArgumentNullException("consumerSecretAppSetting"); } _context = context; _tokenProvider = tokenProvider; _consumerKeyAppSettingName = consumerKeyAppSetting; _consumerSecretAppSettingName = consumerSecretAppSetting; _requestingUserId = requestingUserId; }
public OrderController(MyJobLeadsDbContext context) { _context = context; }
public FillPerfectLicenseProcesses(MyJobLeadsDbContext context) { _context = context; }
public EFUnitOfWork() { _context = new MyJobLeadsDbContext(); }
public UpdateOrgTrialKeyController(MyJobLeadsDbContext context) { _context = context; }
public SiteReferralsController(MyJobLeadsDbContext context) { _context = context; }
public FillPerfectController(MyJobLeadsDbContext context, IProcess<GetOrderableFillPerfectLicensesParams, FpLicensesAvailableForOrderingViewModel> getFpLicensesProc) { _context = context; _getFpLicensesProc = getFpLicensesProc; }
public EFRepository(MyJobLeadsDbContext context) { _objectSet = context.Set <T>(); }
public LinkedInTokenManager(MyJobLeadsDbContext context, int requestedingUserId) : base(context, TokenProvider.LinkedIn, LINKED_IN_KEY_APPSETTINGS, LINKED_IN_SECRET_APPSETTINGS, requestedingUserId) { }
public PayController(MyJobLeadsDbContext context) { _context = context; }
public JobSearchMilestonePropogationProcesses(MyJobLeadsDbContext context) { _context = context; }
public FeedbackController(MyJobLeadsDbContext context) { _context = context; }
public AccountController(IServiceFactory factory, EditUserCommand editUserCmd, MyJobLeadsDbContext context) { _serviceFactory = factory; _editUserCmd = editUserCmd; _context = context; }
public OrgPilotDashboardController(MyJobLeadsDbContext context) { _context = context; }
public SiteActivityController(MyJobLeadsDbContext context, IProcess <ExportSiteActivityReportParams, FileContentViewModel> exportActivityProc) { _context = context; _exportActivityProc = exportActivityProc; }
public OrganizationMetricQueryProcesses(MyJobLeadsDbContext context, IProcess <OrganizationAdminAuthorizationParams, AuthorizationResultViewModel> orgAdminAuthProc) { _context = context; _orgAdminAuthProcess = orgAdminAuthProc; }
public AuthorizationProcesses(MyJobLeadsDbContext context) { _context = context; }
public OrganizationByAdministeringUserQuery (MyJobLeadsDbContext context) { _context = context; }
public FillPerfectController(MyJobLeadsDbContext context, IProcess <GetOrderableFillPerfectLicensesParams, FpLicensesAvailableForOrderingViewModel> getFpLicensesProc) { _context = context; _getFpLicensesProc = getFpLicensesProc; }