public AdministratorLoginService(IAdministratorRepository repository, SigningConfiguration signingConfiguration, TokenConfiguration tokenConfiguration, IConfiguration configuration)
 {
     _repository           = repository;
     _signingConfiguration = signingConfiguration;
     _tokenConfiguration   = tokenConfiguration;
     _configuration        = configuration;
 }
 public AuthController(IAdministratorRepository adminRepo, IPersonalRepository personalRepo, IUserRepository userRepo, JwtGenerator jwt)
 {
     _adminRepo    = adminRepo;
     _personalRepo = personalRepo;
     _userRepo     = userRepo;
     _jwt          = jwt;
 }
 public AnalysisSiteContentController(IAuthManager authManager, ISiteRepository siteRepository, IStatRepository statRepository, IAdministratorRepository administratorRepository)
 {
     _authManager             = authManager;
     _siteRepository          = siteRepository;
     _statRepository          = statRepository;
     _administratorRepository = administratorRepository;
 }
Beispiel #4
0
 public PlaceController(IAdministratorRepository administratorRepository, IPlaceRepository placeRepository, IPlaceService placeService, IClaimsService claimsService)
 {
     _administratorRepository = administratorRepository;
     _placeRepository         = placeRepository;
     _placeService            = placeService;
     _claimsService           = claimsService;
 }
Beispiel #5
0
 public UsersGroupController(IAuthManager authManager, IConfigRepository configRepository, IAdministratorRepository administratorRepository, IUserGroupRepository userGroupRepository)
 {
     _authManager             = authManager;
     _configRepository        = configRepository;
     _administratorRepository = administratorRepository;
     _userGroupRepository     = userGroupRepository;
 }
Beispiel #6
0
 public AdministratorService(ILoggingService loggingService, IAdministratorRepository administratorRepository,
                             ISharedHelper helper)
 {
     _loggingService          = loggingService;
     _administratorRepository = administratorRepository;
     _helper = helper;
 }
Beispiel #7
0
 public AdministratorService(IUserRepository userRepository, IThumbnailRepository thumbnailRepository,
                             IAdministratorRepository administratorRepository)
 {
     _userRepository          = userRepository;
     _thumbnailRepository     = thumbnailRepository;
     _administratorRepository = administratorRepository;
 }
Beispiel #8
0
 public AdministratorService(
     IAdministratorRepository administratorRepository,
     IApplicationUserRepository userRepository)
 {
     this.administratorRepository = administratorRepository;
     this.userRepository          = userRepository;
 }
Beispiel #9
0
 public LostPasswordController(IAuthManager authManager, ICacheManager cacheManager, ISmsManager smsManager, IAdministratorRepository administratorRepository)
 {
     _authManager             = authManager;
     _cacheManager            = cacheManager;
     _smsManager              = smsManager;
     _administratorRepository = administratorRepository;
 }
 public void PerTestSetUp()
 {
     // no mocks/stubs required.  m_repository is a RealAdministratorRepository
     // because that's our production class and that's what we want to test!
     m_repository = new RealAdministratorRepository();
     m_repository.Add(new Administrator(new Guid(AdminId)));
 }
 public BookingService(IBookingRepository repository, IMapper mapper, IAdministratorRepository repositoryAdmin, IVisitorRepository visitorRepository)
 {
     _repository        = repository;
     _mapper            = mapper;
     _repositoryAdmin   = repositoryAdmin;
     _visitorRepository = visitorRepository;
 }
Beispiel #12
0
 public EventController(IAdministratorRepository administratorRepository, IPlaceRepository placeRepository, IEventRepository eventRepository, IEventService eventService, IClaimsService claimsService)
 {
     _administratorRepository = administratorRepository;
     _placeRepository         = placeRepository;
     _eventRepository         = eventRepository;
     _eventService            = eventService;
     _claimsService           = claimsService;
 }
Beispiel #13
0
		public CourseStateUpdateEventHandler(
			ICourseAuditingRepository courseAuditingRepository,
			IAdministratorRepository administratorRepository
		)
		{
			_courseAuditingRepository = courseAuditingRepository;
			_administratorRepository = administratorRepository;
		}
Beispiel #14
0
 public AdministratorController(IRepository repo, IAddressRepository addr, IEventRepository ev, IUserRepository us, IAdministratorRepository admin)
 {
     this.repository              = repo;
     this.addrRepository          = addr;
     this.eventRepository         = ev;
     this.userRepository          = us;
     this.administratorRepositroy = admin;
 }
Beispiel #15
0
 public SiteRepository(ISettingsManager settingsManager, IChannelRepository channelRepository, IAdministratorRepository administratorRepository, ITemplateRepository templateRepository)
 {
     _repository              = new Repository <Site>(settingsManager.Database, settingsManager.Redis);
     _settingsManager         = settingsManager;
     _channelRepository       = channelRepository;
     _administratorRepository = administratorRepository;
     _templateRepository      = templateRepository;
 }
 public SuggestionsController(ITouristAttractionSuggestionRepository touristAttractionSuggestionRepository,
                              IAdministratorRepository administratorRepository,
                              IMailSender mailSender)
 {
     _mailer = mailSender;
     _touristAttractionSuggestionRepository = touristAttractionSuggestionRepository;
     _administratorRepository = administratorRepository;
 }
Beispiel #17
0
 public InstallController(ISettingsManager settingsManager, IPathManager pathManager, IDatabaseManager databaseManager, IConfigRepository configRepository, IAdministratorRepository administratorRepository)
 {
     _settingsManager         = settingsManager;
     _pathManager             = pathManager;
     _databaseManager         = databaseManager;
     _configRepository        = configRepository;
     _administratorRepository = administratorRepository;
 }
 public IAdministratorRepository<Administrator> GetAdministratorRepository()
 {
     if (adminRepo == null)
     {
         adminRepo = new AdministratorRepository(ctx);
     }
     return adminRepo;
 }
Beispiel #19
0
 public LogRepository(ISettingsManager settingsManager, IConfigRepository configRepository, IAdministratorRepository administratorRepository, IUserRepository userRepository, IErrorLogRepository errorLogRepository)
 {
     _repository              = new Repository <Log>(settingsManager.Database, settingsManager.Redis);
     _configRepository        = configRepository;
     _administratorRepository = administratorRepository;
     _userRepository          = userRepository;
     _errorLogRepository      = errorLogRepository;
 }
Beispiel #20
0
 public LogsSiteController(IAuthManager authManager, IPathManager pathManager, IAdministratorRepository administratorRepository, ISiteRepository siteRepository, ISiteLogRepository siteLogRepository)
 {
     _authManager             = authManager;
     _pathManager             = pathManager;
     _administratorRepository = administratorRepository;
     _siteRepository          = siteRepository;
     _siteLogRepository       = siteLogRepository;
 }
Beispiel #21
0
        public SellerControllerServiceTest()
        {
            sellerRepository        = new DummySellerRepository();
            administratorRepository = new DummyAdministratorRepository();

            administratorControllerService = new AdministratorControllerService(administratorRepository);
            sellerControllerService        = new SellerControllerService(sellerRepository, administratorRepository);
        }
 public HomeController(Context context)
 {
     this.museumRepository  = new MuseumRepository(context);
     this.adminRepository   = new AdministratorRepository(context);
     this.artworkRepository = new ArtworkRepository(context);
     this.imageRepository   = new ImageRepository(context);
     this.newsRepository    = new NewsRepository(context);
 }
 public AdminLayerViewController(IHttpContextAccessor context, ISettingsManager settingsManager, IDatabaseManager databaseManager, IAdministratorRepository administratorRepository, ISiteRepository siteRepository)
 {
     _context                 = context;
     _settingsManager         = settingsManager;
     _databaseManager         = databaseManager;
     _administratorRepository = administratorRepository;
     _siteRepository          = siteRepository;
 }
Beispiel #24
0
 public SiteLogRepository(ISettingsManager settingsManager, IConfigRepository configRepository, IAdministratorRepository administratorRepository, ILogRepository logRepository, IErrorLogRepository errorLogRepository)
 {
     _repository              = new Repository <SiteLog>(settingsManager.Database, settingsManager.Redis);
     _configRepository        = configRepository;
     _administratorRepository = administratorRepository;
     _logRepository           = logRepository;
     _errorLogRepository      = errorLogRepository;
 }
 public AccountController(IAdministratorRepository administratorRepository, AuthenticationService authenticationService, SignInService signInService, AdvertiserAccountService advertiserAccountService, IAdvertiserRepository advertiserRepository, AdministratorAccountService administratorAccountService)
 {
     _administratorRepository = administratorRepository;
     _authenticationService = authenticationService;
     _signInService = signInService;
     _advertiserAccountService = advertiserAccountService;
     _advertiserRepository = advertiserRepository;
     _administratorAccountService = administratorAccountService;
 }
 public ContentsLayerStateController(IAuthManager authManager, ISiteRepository siteRepository, IChannelRepository channelRepository, IContentRepository contentRepository, IContentCheckRepository contentCheckRepository, IAdministratorRepository administratorRepository)
 {
     _authManager             = authManager;
     _siteRepository          = siteRepository;
     _channelRepository       = channelRepository;
     _contentRepository       = contentRepository;
     _contentCheckRepository  = contentCheckRepository;
     _administratorRepository = administratorRepository;
 }
 public AccountService(ILecturerRepository lecturerRepository, IStudentRepository studentRepository, IAdministratorRepository administratorRepository,
                       IHashService hashService, IHttpContextAccessor httpContextAccessor)
 {
     _lecturerRepository      = lecturerRepository;
     _studentRepository       = studentRepository;
     _administratorRepository = administratorRepository;
     _hashService             = hashService;
     _httpContextAccessor     = httpContextAccessor;
 }
Beispiel #28
0
 public AccountController(IAdministratorRepository administratorRepository, AuthenticationService authenticationService, SignInService signInService, AdvertiserAccountService advertiserAccountService, IAdvertiserRepository advertiserRepository, AdministratorAccountService administratorAccountService)
 {
     _administratorRepository     = administratorRepository;
     _authenticationService       = authenticationService;
     _signInService               = signInService;
     _advertiserAccountService    = advertiserAccountService;
     _advertiserRepository        = advertiserRepository;
     _administratorAccountService = administratorAccountService;
 }
 public SessionController(IOptions <ApplicationOptions> options,
                          IEmployeeRepository employeeRepository,
                          IAdministratorRepository administratorRepository)
     : base(options)
 {
     _employeeRepo   = employeeRepository;
     _adminRepo      = administratorRepository;
     _authentication = new Ldap(Options, _adminRepo.Get());
 }
Beispiel #30
0
 public AdministratorController(
     IMapper mapper,
     IAdministratorRepository administratorRepository)
 {
     this.Mapper = mapper ??
                   throw new ArgumentNullException(nameof(mapper));
     this.AdministratorRepository = administratorRepository ??
                                    throw new ArgumentNullException(nameof(administratorRepository));
 }
Beispiel #31
0
 public AdministratorsController(IAuthManager authManager, IConfigRepository configRepository, IAccessTokenRepository accessTokenRepository, IAdministratorRepository administratorRepository, IDbCacheRepository dbCacheRepository, ILogRepository logRepository, IStatRepository statRepository)
 {
     _authManager             = authManager;
     _configRepository        = configRepository;
     _accessTokenRepository   = accessTokenRepository;
     _administratorRepository = administratorRepository;
     _dbCacheRepository       = dbCacheRepository;
     _logRepository           = logRepository;
     _statRepository          = statRepository;
 }
 /// <summary>
 /// 初始化一个<see cref="AdministratorManager"/>类型的实例
 /// </summary>
 public AdministratorManager(IAdministratorRepository administratorRepository
                             , IUserRepository userRepository
                             , IUserInfoRepository userInfoRepository
                             , IUserManager userManager)
 {
     AdministratorRepository = administratorRepository;
     UserRepository          = userRepository;
     UserInfoRepository      = userInfoRepository;
     UserManager             = userManager;
 }
 public AdministratorAccountService(IAdministratorRepository administratorRepository, CryptographyService cryptographyService)
 {
     _administratorRepository = administratorRepository;
     _cryptographyService = cryptographyService;
 }
 public AdministratorService(IAdministratorRepository administratorRepository)
 {
     m_AdministratorRepository = administratorRepository;
 }
 public AdministratorService(IAdministratorRepository administratorRepository, IUnitOfWork unitOfWork)
 {
     _administratorRepository = administratorRepository;
     _unitOfWork = unitOfWork;
 }
 public AuthenticationService(IAdministratorRepository administratorRepository, IAdvertiserRepository advertiserRepository, CryptographyService cryptographyService)
 {
     _administratorRepository = administratorRepository;
     _advertiserRepository = advertiserRepository;
     _cryptographyService = cryptographyService;
 }