public DataQueryService(IDeansOfficeQuery deansOfficeQuery, ILoginQueryDao loginQuery, ISessionGenerator sessionGenerator, IEventsQuery eventsQuery, IMessageQuery messageQuery, ILibraryQuery libraryQuery, IUnitQuery unitQuery, IUserQuery userQuery, IDepartmentQuery departmentQuery) { _deansOfficeQuery = deansOfficeQuery ?? new DeansOfficeQuery(); _loginQuery = loginQuery ?? new LoginQueryDao(); _sessionGenerator = sessionGenerator ?? new SessionGenerator(); _eventsQuery = eventsQuery ?? new EventsQueryDao(); _messageQuery = messageQuery ?? new MessageQueryDao(); _libraryQuery = libraryQuery ?? new LibraryQueryDao(); _unitQuery = unitQuery ?? new UnitQueryDao(); _userQuery = userQuery ?? new UserQueryDao(); _departmentQuery = departmentQuery ?? new DepartmentQueryDao(); }
public LoginHandler(ILoginQueryDao loginQueryDao, ISessionGenerator sessionGenerator) { _loginQueryDao = loginQueryDao; _sessionGenerator = sessionGenerator; }
public LoginQueryDao(ISessionGenerator sessionGenerator = null) { _sessionGenerator = sessionGenerator ?? new SessionGenerator(); }
public LoginHandler() { _loginQueryDao = new LoginQueryDao(); _sessionGenerator = new SessionGenerator(); }
public DataCommandService(ICommands commands, ILoginQueryDao loginQuery, ISessionGenerator sessionGenerator) { _commands = commands ?? new Commands.Commands(); _loginQuery = loginQuery ?? new LoginQueryDao(); _sessionGenerator = sessionGenerator ?? new SessionGenerator(); }