Ejemplo n.º 1
0
 public Engine(
     IAccountService accountService,
     IGovernmentService governmentService,
     IGroupService groupService,
     IReportService reportService,
     IPlotService plotService,
     IDecisionService decisionService,
     IAudienceService audienceService,
     INewsService newsService,
     IRevolutionService revolutionService,
     IScoreService scoreService,
     IEscapeService escapeService,
     IAssassinationService assassinationService,
     ILoanService loanService,
     IWarService warService)
 {
     this.accountService       = accountService;
     this.governmentService    = governmentService;
     this.groupService         = groupService;
     this.reportService        = reportService;
     this.plotService          = plotService;
     this.decisionService      = decisionService;
     this.audienceService      = audienceService;
     this.newsService          = newsService;
     this.revolutionService    = revolutionService;
     this.scoreService         = scoreService;
     this.escapeService        = escapeService;
     this.assassinationService = assassinationService;
     this.loanService          = loanService;
     this.warService           = warService;
 }
Ejemplo n.º 2
0
        public CourseController(
            ICourseService courseRepository,
            ICategoryService categoryRepository,
            ICertificateService certificateRepository,
            IAudienceService audienceRepository)
        {
            if (courseRepository == null)
            {
                throw new ArgumentNullException("courseRepository");
            }

            if (categoryRepository == null)
            {
                throw new ArgumentNullException("categoryRepository");
            }

            if (certificateRepository == null)
            {
                throw new ArgumentNullException("certificateRepository");
            }

            if (audienceRepository == null)
            {
                throw new ArgumentNullException("audienceRepository");
            }

            _courseRepository      = courseRepository;
            _categoryRepository    = categoryRepository;
            _audienceRepository    = audienceRepository;
            _certificateRepository = certificateRepository;
        }
Ejemplo n.º 3
0
        public AudienceController(IAudienceService audienceRepository)
        {
            if (audienceRepository == null)
            {
                throw new ArgumentNullException("audienceRepository");
            }

            _audienceRepository = audienceRepository;
        }
Ejemplo n.º 4
0
 public CreateModel(IAudienceService audienceService, IStationService stationService)
 {
     _audienceService = audienceService;
     _stationService  = stationService;
 }
Ejemplo n.º 5
0
        //https://www.c-sharpcorner.com/blogs/jwt-based-tokenisation-via-net-core
        //https://www.red-gate.com/simple-talk/dotnet/net-development/jwt-authentication-microservices-net/

        public AuthController(ITokenManager tokenManager, IAudienceService audienceService, IUserService userService)
        {
            _tokenManager    = tokenManager;
            _audienceService = audienceService;
            _userService     = userService;
        }
Ejemplo n.º 6
0
 public TokenManager(IConfiguration config, IAudienceService audienceService)
 {
     _config          = config;
     _audienceService = audienceService;
 }
Ejemplo n.º 7
0
 public AudienceController(IAudienceService audienceService)
 {
     _audienceService = audienceService;
 }
Ejemplo n.º 8
0
 public IndexModel(IAudienceService audienceService, IStationService stationService)
 {
     _audienceService = audienceService;
     _stationService  = stationService;
 }
 public AuthService(IAudienceService audienceService)
 {
     this.audienceService = audienceService;
 }
Ejemplo n.º 10
0
 public DetailsModel(IAudienceService audienceService, IStationService stationService)
 {
     _audienceService = audienceService;
     _stationService  = stationService;
 }
Ejemplo n.º 11
0
 public AudienceController(IAudienceService audienceService, IFeatureService featureService)
 {
     _audienceService = audienceService ?? throw new ArgumentNullException(nameof(audienceService));
     _featureService  = featureService ?? throw new ArgumentNullException(nameof(featureService));
 }