Example #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;
 }
Example #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;
        }
Example #3
0
        public AudienceController(IAudienceService audienceRepository)
        {
            if (audienceRepository == null)
            {
                throw new ArgumentNullException("audienceRepository");
            }

            _audienceRepository = audienceRepository;
        }
Example #4
0
 public CreateModel(IAudienceService audienceService, IStationService stationService)
 {
     _audienceService = audienceService;
     _stationService  = stationService;
 }
Example #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;
        }
Example #6
0
 public TokenManager(IConfiguration config, IAudienceService audienceService)
 {
     _config          = config;
     _audienceService = audienceService;
 }
Example #7
0
 public AudienceController(IAudienceService audienceService)
 {
     _audienceService = audienceService;
 }
Example #8
0
 public IndexModel(IAudienceService audienceService, IStationService stationService)
 {
     _audienceService = audienceService;
     _stationService  = stationService;
 }
 public AuthService(IAudienceService audienceService)
 {
     this.audienceService = audienceService;
 }
Example #10
0
 public DetailsModel(IAudienceService audienceService, IStationService stationService)
 {
     _audienceService = audienceService;
     _stationService  = stationService;
 }
Example #11
0
 public AudienceController(IAudienceService audienceService, IFeatureService featureService)
 {
     _audienceService = audienceService ?? throw new ArgumentNullException(nameof(audienceService));
     _featureService  = featureService ?? throw new ArgumentNullException(nameof(featureService));
 }