public RestDataService(IDeansOfficeQuery deansOfficeQuery, IEventsQuery eventsQuery, IMessageQuery messageQuery, ILibraryQuery libraryQuery, IUnitQuery unitQuery) { _deansOfficeQuery = deansOfficeQuery ?? new DeansOfficeQuery(); _eventsQuery = eventsQuery ?? new EventsQueryDao(); _messageQuery = messageQuery ?? new MessageQueryDao(); _libraryQuery = libraryQuery ?? new LibraryQueryDao(); _unitQuery = unitQuery ?? new UnitQueryDao(); }
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(); }