Example #1
0
 public ContractServicesController(ICommandProcessor commandProcessor, IQueryProcessor queryProcessor, ICurrentUserFactory currentUserFactory, IResultMessagesFactory resultMessagesFactory)
 {
     _commandProcessor      = commandProcessor;
     _queryProcessor        = queryProcessor;
     _currentUserFactory    = currentUserFactory;
     _resultMessagesFactory = resultMessagesFactory;
 }
Example #2
0
 public OwnersController(ApplicationDbContext context, IUserHelper userHelper,
                         ICurrentUserFactory currentUser, IRoleManager roleManager) : base(context, userHelper, currentUser)
 {
     _roleManager = roleManager;
     _userHelper  = userHelper;
     recordHelper = new RecordsHelper(context);
 }
Example #3
0
 public DataContext(
     DbContextOptions <DataContext> options,
     ICurrentUserFactory currentUser = null
     ) : base(options)
 {
     _currentUser = currentUser;
 }
Example #4
0
 public ApplicationDbContext(
     DbContextOptions <ApplicationDbContext> options,
     ICurrentUserFactory currentUser = null
     ) : base(options)
 {
     _currentUser = currentUser;
 }
Example #5
0
 public AvatarController(
     IUsersProvider userProvider,
     ICurrentUserFactory userFactory)
     : base(userFactory)
 {
     _userProvider = userProvider;
 }
Example #6
0
 public PsBaseController(ApplicationDbContext context,
                         IUserHelper userHelper, ICurrentUserFactory currentUser)
 {
     Context       = context;
     UserHelper    = userHelper;
     MyCurrentUser = currentUser;
 }
 public PsBaseController(ApplicationDbContext context,
                         IUserHelper userHelper, ICurrentUserFactory currentUser)
 {
     Context           = context;
     UserHelper        = userHelper;
     GenericSelectList = new GenericSelectList();
     MyCurrentUser     = currentUser;
 }
Example #8
0
 public LotteriesController(ApplicationDbContext context, IUserHelper userHelper,
                            ICurrentUserFactory currentUser,
                            IServiceProvider serviceProvider, LotterySaleRepository lotterySaleRepository,
                            IHubContext <NotificationHub> notificationHubContext) : base(context, userHelper, currentUser, serviceProvider)
 {
     _notificationHubContext = notificationHubContext;
     _repository             = lotterySaleRepository;
 }
Example #9
0
 public ProjectController(IProjectProvider projectProvider,
                          ProjectMapper projectMapper,
                          ICurrentUserFactory userFactory)
     : base(userFactory)
 {
     _projectProvider = projectProvider;
     _projectMapper   = projectMapper;
 }
Example #10
0
 public QuoteController(ICommandProcessor commandProcessor
                        , IQueryProcessor queryProcessor
                        , ICurrentUserFactory currentUserFactory)
 {
     _commandProcessor   = commandProcessor;
     _queryProcessor     = queryProcessor;
     _currentUserFactory = currentUserFactory;
 }
Example #11
0
 public ProfileController(
     IProfileProvider profileProvider,
     ProfileMapper profileMapper,
     ICurrentUserFactory userFactory)
     : base(userFactory)
 {
     _profileProvider = profileProvider;
     _profileMapper   = profileMapper;
 }
Example #12
0
 public PsBaseController(ApplicationDbContext context,
                         IUserHelper userHelper, ICurrentUserFactory currentUser, IServiceProvider serviceProvider, IGenericSelectList genericSelectList)
 {
     Context           = context;
     UserHelper        = userHelper;
     GenericSelectList = genericSelectList;
     MyCurrentUser     = currentUser;
     _serviceProvider  = serviceProvider;
 }
Example #13
0
 public HomeController(ApplicationDbContext context, IUserHelper userHelper, ICurrentUserFactory currentUser,
                       IConfiguration configuration, LotterySaleRepository repository,
                       IHubContext <NotificationHub> notificationHubContext) : base(context, userHelper, currentUser)
 {
     //   _context = context;
     //  _contextFromClasic = contextFromClasic;
     _configuration          = configuration;
     _repository             = repository;
     recordHelper            = new RecordsHelper(context);
     _notificationHubContext = notificationHubContext;
 }
 public HomeController(
     ITraineeProvider traineeProvider,
     IProjectProvider projectProvider,
     WordTransformer wordTransformer,
     ICurrentUserFactory userFactory)
     : base(userFactory)
 {
     _traineeProvider = traineeProvider;
     _projectProvider = projectProvider;
     _wordTransformer = wordTransformer;
 }
        private ProfileController CreateProfileController(ICurrentUserFactory fakeFactory)
        {
            NewScope();
            var profileProvider = Kernel.Get <IProfileProvider>();
            var profileMapper   = Kernel.Get <ProfileMapper>();

            return(new ProfileController(
                       profileProvider,
                       profileMapper,
                       fakeFactory));
        }
 public UserController(ICurrentUserFactory userFactory,
                       IUsersProvider userProvider,
                       IRoleProvider roleProvider,
                       IDetailedInfoBuilder detailsBuilder,
                       UserMapper userMapper)
     : base(userFactory)
 {
     _userProvider   = userProvider;
     _roleProvider   = roleProvider;
     _detailsBuilder = detailsBuilder;
     _userMapper     = userMapper;
 }
 public TraineeController(
     ITraineeProvider traineeProvider,
     ITraineeReviewProvider traineeReviewProvider,
     IUsersProvider usersProvider,
     TraineeMapper traineeMapper,
     TraineeReviewMapper traineeReviewMapper,
     ICurrentUserFactory userFactory)
     : base(userFactory)
 {
     _traineeProvider       = traineeProvider;
     _traineeMapper         = traineeMapper;
     _usersProvider         = usersProvider;
     _traineeReviewProvider = traineeReviewProvider;
     _traineeReviewMapper   = traineeReviewMapper;
 }
        // private readonly IBlobHelper _blobHelper;


        public AccountController(ApplicationDbContext context,
                                 IUserHelper userHelper,
                                 ICurrentUserFactory currentUser,
                                 IConfiguration configuration,
                                 IMailHelper mailHelper
                                 // , IBlobHelper blobHelper
                                 ) : base(context, userHelper, currentUser)
        {
            //  UserHelper = userHelper;
            _mailHelper         = mailHelper;
            this._configuration = configuration;
            _userHelper         = userHelper;
            _configuration      = configuration;
            //  _blobHelper = blobHelper;
            _mailHelper = mailHelper;
        }
Example #19
0
 public TestService(ICommandProcessor commandProcessor, IQueryProcessor queryProcessor, ICurrentUserFactory currentUserFactory)
 {
     if (currentUserFactory == null)
     {
         throw new ArgumentNullException("CurrentUserFactory cannot be null");
     }
     if (commandProcessor == null)
     {
         throw new ArgumentNullException("Command Processor cannot be null");
     }
     if (queryProcessor == null)
     {
         throw new ArgumentNullException("Query Processor cannot be null");
     }
     _currentUserFactory = currentUserFactory;
     _commandProcessor   = commandProcessor;
     _queryProcessor     = queryProcessor;
 }
Example #20
0
 public MentorController(
     IUsersProvider usersProvider,
     ITraineeProvider traineeProvider,
     ProjectMapper projectMapper,
     IMentorReviewProvider reviewProvider,
     IMentorProvider mentorProvider,
     MentorReviewMapper reviewMapper,
     MentorMapper mentorMapper,
     ICurrentUserFactory userFactory)
     : base(userFactory)
 {
     _mentorProvider  = mentorProvider;
     _usersProvider   = usersProvider;
     _traineeProvider = traineeProvider;
     _mentorMapper    = mentorMapper;
     _reviewProvider  = reviewProvider;
     _projectMapper   = projectMapper;
     _reviewMapper    = reviewMapper;
 }
 public ScrumMasterController(
     IScrumReviewProvider scrumReviewProvider,
     IScrumMasterProvider scrumMasterProvider,
     IGroupProvider groupProvider,
     IProjectProvider projectProvider,
     ScrumReviewMapper scrumMasterMapper,
     GroupMapper groupMapper,
     ProjectMapper projectMapper,
     ICurrentUserFactory userFactory)
     : base(userFactory)
 {
     _scrumReviewProvider = scrumReviewProvider;
     _scrumMasterProvider = scrumMasterProvider;
     _scrumMasterMapper   = scrumMasterMapper;
     _groupProvider       = groupProvider;
     _projectProvider     = projectProvider;
     _groupMapper         = groupMapper;
     _projectMapper       = projectMapper;
 }
Example #22
0
 protected BaseController(ICurrentUserFactory userFactory)
 {
     _userFactory = userFactory;
 }
Example #23
0
 public OriginController(ICurrentUserFactory currentUser)
 {
     _apiService  = new ApiService();
     _currentUser = currentUser;
 }
 public PeriodicitiesController(ApplicationDbContext context, IUserHelper userHelper,
                                ICurrentUserFactory currentUser, IRoleManager roleManager, IGenericSelectList genericSelectList) : base(context, userHelper, currentUser, genericSelectList)
 {
     _roleManager = roleManager;
     recordHelper = new RecordsHelper(context);
 }
Example #25
0
 public HomeController(ApplicationDbContext context, IUserHelper userHelper, ICurrentUserFactory currentUser, IConfiguration configuration) : base(context, userHelper, currentUser)
 {
     this.configuration = configuration;
 }
 public ConfigurationsController(ApplicationDbContext context, IUserHelper userHelper, ICurrentUserFactory currentUser) : base(context, userHelper, currentUser)
 {
 }
 public EventsController(DataContext context, ICurrentUserFactory currentUserFactory)
 {
     _context     = context;
     _currentUser = currentUserFactory;
 }
Example #28
0
 public HomeController(
     ICurrentUserFactory currentUser
     )
 {
     _currentUser = currentUser;
 }
Example #29
0
 public NavigationController(ICurrentUserFactory userFactory)
     : base(userFactory)
 {
 }