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;
 }
Example #4
0
 public UserAdminProcesses(MyJobLeadsDbContext context,
                           IProcess <SiteAdminAuthorizationParams, AuthorizationResultViewModel> siteAdminAuthProc,
                           CreateUserCommand createUserCmd)
 {
     _context           = context;
     _siteAdminAuthProc = siteAdminAuthProc;
     _createUserCmd     = createUserCmd;
 }
Example #5
0
 public JigsawCompanySearchProcesses(MyJobLeadsDbContext context,
                                     CompanyByIdQuery companyQuery,
                                     CreateCompanyCommand createCompanyCmd,
                                     EditCompanyCommand editCompanyCmd)
 {
     _context          = context;
     _companyByIdQuery = companyQuery;
     _createCompanyCmd = createCompanyCmd;
     _editCompanyCmd   = editCompanyCmd;
 }
Example #6
0
 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;
 }
Example #9
0
 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;
 }
Example #10
0
 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;
 }
Example #11
0
 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;
 }
Example #12
0
 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;
 }
Example #13
0
 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;
 }
Example #15
0
        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);
        }
Example #16
0
        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);
        }
Example #17
0
 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;
        }
Example #20
0
 public OrderController(MyJobLeadsDbContext context)
 {
     _context = context;
 }
Example #21
0
 public FillPerfectLicenseProcesses(MyJobLeadsDbContext context)
 {
     _context = context;
 }
Example #22
0
 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;
 }
Example #26
0
 public EFRepository(MyJobLeadsDbContext context)
 {
     _objectSet = context.Set <T>();
 }
 public UpdateOrgTrialKeyController(MyJobLeadsDbContext context)
 {
     _context = context;
 }
Example #28
0
 public LinkedInTokenManager(MyJobLeadsDbContext context, int requestedingUserId)
     : base(context, TokenProvider.LinkedIn, LINKED_IN_KEY_APPSETTINGS, LINKED_IN_SECRET_APPSETTINGS, requestedingUserId)
 {
 }
Example #29
0
 public SiteReferralsController(MyJobLeadsDbContext context)
 {
     _context = context;
 }
Example #30
0
 public PayController(MyJobLeadsDbContext context)
 {
     _context = context;
 }
Example #31
0
 public OrderController(MyJobLeadsDbContext context)
 {
     _context = context;
 }
 public JobSearchMilestonePropogationProcesses(MyJobLeadsDbContext context)
 {
     _context = context;
 }
 public FeedbackController(MyJobLeadsDbContext context)
 {
     _context = context;
 }
Example #34
0
 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;
 }
Example #38
0
 public OrgPilotDashboardController(MyJobLeadsDbContext context)
 {
     _context = context;
 }
Example #39
0
 public EFUnitOfWork()
 {
     _context = new MyJobLeadsDbContext();
 }
 public AuthorizationProcesses(MyJobLeadsDbContext context)
 {
     _context = context;
 }
 public OrganizationByAdministeringUserQuery (MyJobLeadsDbContext context)
 {
     _context = context;
 }
 public FillPerfectController(MyJobLeadsDbContext context,
                              IProcess <GetOrderableFillPerfectLicensesParams, FpLicensesAvailableForOrderingViewModel> getFpLicensesProc)
 {
     _context           = context;
     _getFpLicensesProc = getFpLicensesProc;
 }