/// <summary> /// Initializes a new instance of the <see cref="ScansController"/> class. /// </summary> /// <param name="scanRepository">The repository used for Scan data access.</param> /// <param name="eventRepository">The repository used for Event data access.</param> /// <param name="veteranRepository">The repository used for Veteran data access.</param> /// <param name="serviceRepository">The repository used for Service data access.</param> public ScansController(ITripleKeyRepository <Scan> scanRepository, ISingleKeyRepository <Event> eventRepository, ISingleKeyRepository <Veteran> veteranRepository, ISingleKeyRepository <Service> serviceRepository) { ScanRepository = scanRepository; EventRepository = eventRepository; VeteranRepository = veteranRepository; ServiceRepository = serviceRepository; }
/// <summary> /// Initializes a new instance of the <see cref="SecurityController"/> class. /// </summary> /// <param name="accountRepository">The repository used for Account data access.</param> /// <param name="tokenFactory">The factory used to create new tokens.</param> /// <param name="tokenValidator">The validator used to validate tokens.</param> /// <param name="refreshTokenRepository">The repository used for RefreshToken data access.</param> public SecurityController(ISingleKeyRepository <Account> accountRepository, ITokenFactory tokenFactory, ITokenValidator tokenValidator, ISingleKeyRepository <RefreshToken> refreshTokenRepository) { AccountRepository = accountRepository; TokenFactory = tokenFactory; RefreshTokenRepository = refreshTokenRepository; TokenValidator = tokenValidator; }
/// <summary> /// Initializes a new instance of the <see cref="EventsController"/> class. /// </summary> /// <param name="eventRepository">The repository used for Event data access.</param> public EventsController(ISingleKeyRepository <Event> eventRepository) { EventRepository = eventRepository; }
/// <summary> /// Initializes a new instance of the <see cref="ServicesController"/> class. /// </summary> /// <param name="serviceRepository">The respository used for Service data access.</param> public ServicesController(ISingleKeyRepository <Service> serviceRepository) { ServiceRepository = serviceRepository; }
/// <summary> /// Initializes a new instance of the <see cref="VeteransController"/> class. /// </summary> /// <param name="veteranRepository">The repository used for Veteran data access.</param> public VeteransController(ISingleKeyRepository <Veteran> veteranRepository) { VeteranRepository = veteranRepository; }