Пример #1
0
 public ProfileController(ICurrentSession session)
 {
     _session      = session;
     _credentialID = _session.LoggedUser.CredentialID;
     _studentDAO   = new StudentDAO();
     _student      = _studentDAO.FindOneRecordBy(_credentialID);
 }
Пример #2
0
 public IncomeItemCommands(IEntityRepository repository,
                           ICurrentSession currentSession,
                           ITransactionBuilder transactionBuilder)
 {
     _repository         = repository;
     _currentSession     = currentSession;
     _transactionBuilder = transactionBuilder;
 }
Пример #3
0
        public SessionManager(ICurrentSession currentSession)
            : this()
        {
            Contract.Requires(currentSession != null);

            _currentSession = currentSession;
            _sessions.Add(currentSession);
        }
Пример #4
0
 public MentorController(MentorDAO mentorDAO, ClassEnrolmentDAO classEnrolmentDAO, GroupDAO groupDAO, StudentDAO studentDAO, ICurrentSession session)
 {
     _mentorDAO         = mentorDAO;
     _classEnrolmentDAO = classEnrolmentDAO;
     _groupDAO          = groupDAO;
     _studentDAO        = studentDAO;
     _session           = session;
     _credentialID      = _session.LoggedUser.CredentialID;
 }
Пример #5
0
 public ExpensesQueries(
     IEntityRepository repository,
     IUserSettings userSettings,
     ICurrentSession currentSession)
 {
     _repository     = repository;
     _userSettings   = userSettings;
     _currentSession = currentSession;
 }
Пример #6
0
 public ArtifactController(ICurrentSession session)
 {
     _artifactDao       = new ArtifactDAO();
     _studentDAO        = new StudentDAO();
     _session           = session;
     CredentialId       = _session.LoggedUser.CredentialID;
     ArtifactManagmenet = new ArtifactManagement();
     Student            = _studentDAO.FindOneRecordBy(CredentialId);
 }
Пример #7
0
 public ExpenseFlowCommands(
     IEntityRepository repository,
     ICurrentSession currentSession,
     IExpensesBillCommands expensesBillCommands)
 {
     _repository           = repository;
     _currentSession       = currentSession;
     _expensesBillCommands = expensesBillCommands;
 }
Пример #8
0
 public MessageController(ICurrentSession session)
 {
     _studentDAO           = new StudentDAO();
     _groupTransactionDAO  = new GroupTransactionDAO();
     _studentAcceptanceDAO = new StudentAcceptanceDAO();
     _session      = session;
     _credentialID = _session.LoggedUser.CredentialID;
     _artifactDAO  = new ArtifactDAO();
     _student      = _studentDAO.FindOneRecordBy(_credentialID);
 }
Пример #9
0
 public CreditCardProcessing(IEntityRepository repository,
                             ICurrentSession currentSession,
                             ITimeService timeService,
                             IExpensesBillCommands expensesBillCommands)
 {
     _repository           = repository;
     _currentSession       = currentSession;
     _timeService          = timeService;
     _expensesBillCommands = expensesBillCommands;
 }
Пример #10
0
 public HomeController(ILogger <HomeController> logger,
                       ILoginValidatorService loginValidatorService,
                       ICurrentSession session,
                       IUserFinderService userFinderService)
 {
     _logger = logger;
     _loginValidatorService = loginValidatorService;
     _session           = session;
     _userFinderService = userFinderService;
 }
Пример #11
0
 public CategoriesCommands(IEntityRepository repository,
                           IProductCommands productCommands,
                           IProductQueries productQueries,
                           ICurrentSession currentSession)
 {
     _repository      = repository;
     _productCommands = productCommands;
     _productQueries  = productQueries;
     _currentSession  = currentSession;
 }
Пример #12
0
 public DistributionCommands(
     IEntityRepository repository,
     IFlowDistributor distributor,
     ITimeService timeService,
     ICurrentSession currentSession)
 {
     _repository     = repository;
     _distributor    = distributor;
     _timeService    = timeService;
     _currentSession = currentSession;
 }
Пример #13
0
 public AccountCommands(IEntityRepository repository,
                        ICurrentSession currentSession,
                        IIncomeItemCommands incomeItemCommands,
                        ITimeService timeService,
                        ITransactionBuilder transactionBuilder)
 {
     _repository         = repository;
     _currentSession     = currentSession;
     _incomeItemCommands = incomeItemCommands;
     _timeService        = timeService;
     _transactionBuilder = transactionBuilder;
 }
Пример #14
0
 public QuestController(
     ILogger <QuestController> logger,
     ICurrentSession session,
     IDB_GenericInterface <Quest> questDAO
     )
 {
     _logger        = logger;
     _session       = session;
     _loggedStudent = _session.LoggedUser as Student;
     _questDAO      = questDAO;
     _questManager  = new QuestManagement();
 }
Пример #15
0
 public ExpensesBillCommands(
     IEntityRepository repository,
     ICurrentSession currentSession,
     IBalancesUpdaterFactory balancesUpdaterFactory,
     ITransitionBalanceUpdater transitionBalanceUpdater,
     ITransactionBuilder transactionBuilder)
 {
     _repository               = repository;
     _currentSession           = currentSession;
     _balancesUpdaterFactory   = balancesUpdaterFactory;
     _transitionBalanceUpdater = transitionBalanceUpdater;
     _transactionBuilder       = transactionBuilder;
 }
Пример #16
0
 public ProductQueries(IEntityRepository repository, ICurrentSession currentSession)
 {
     _repository     = repository;
     _currentSession = currentSession;
 }
Пример #17
0
 public DistributionQueries(IEntityRepository repository, ICurrentSession currentSession)
 {
     _repository     = repository;
     _currentSession = currentSession;
 }
Пример #18
0
 public ProductCommands(IEntityRepository repository, ICurrentSession currentSession)
 {
     _repository     = repository;
     _currentSession = currentSession;
 }
Пример #19
0
 public TimeService(ICurrentSession currentSession)
 {
     _currentSession = currentSession;
 }
Пример #20
0
 public TransactionQueries(IEntityRepository repository, ICurrentSession currentSession)
 {
     _repository     = repository;
     _currentSession = currentSession;
 }
Пример #21
0
 public CategoriesQueries(IEntityRepository repository, ICurrentSession currentSession)
 {
     _repository     = repository;
     _currentSession = currentSession;
 }
Пример #22
0
 public IncomeTypeCommands(IEntityRepository repository, ICurrentSession currentSession)
 {
     _repository     = repository;
     _currentSession = currentSession;
 }
 public LoginController(ICurrentSession currentSession)
 {
     _CurrentSession = currentSession;
 }
Пример #24
0
 public ExpenseFlowQueries(IEntityRepository repository, ICurrentSession currentSession)
 {
     _repository     = repository;
     _currentSession = currentSession;
 }
Пример #25
0
 public RequireProjectAccessFilter(ICurrentSession currentSession, string routeKey)
 {
     _currentSession = currentSession;
     _routeKey       = routeKey;
 }
 public ProfileController(ICurrentSession currentSession)
 {
     _CurrentSession = currentSession;
 }
Пример #27
0
 public UserModel(IEntityRepository repository, ICurrentSession currentSession, IAuthCommands authCommands)
 {
     _repository     = repository;
     _currentSession = currentSession;
     _authCommands   = authCommands;
 }