public HomeController(IUnitOfWork uow, ISubjectService subjectService, IProductCategoryService categoryService, IChapterService chapterService, IGalleryService galleryService)
 {
     _uow = uow;
     _subjectService = subjectService;
     _productCategoryService = categoryService;
     _galleryService = galleryService;
 }
Beispiel #2
0
 public FanficController(
     IFanficService fanficService,
     IFanficTagsService fanficTagsService,
     IChapterService chapterService,
     IChapterRatingService chapterRatingService,
     ICommentService commentService,
     ICommentRatingService commentRatingService,
     IGenreService genreService,
     ITagService tagService,
     SignInManager <ApplicationUser> authManager,
     IUserService userService,
     IMapper mapper)
 {
     _fanficService         = fanficService;
     _fanficTagsService     = fanficTagsService;
     _chapterService        = chapterService;
     _chapterRatingService  = chapterRatingService;
     _commentService        = commentService;
     _commentRatingService  = commentRatingService;
     _genreService          = genreService;
     _tagService            = tagService;
     _userService           = userService;
     _authenticationManager = authManager;
     _mapper = mapper;
 }
Beispiel #3
0
 public ProblemController(IProblemService ProblemService,
                          IProblemCategoryService ProblemCategoryService,
                          IBelongService BelongService,
                          IChapterService ChapterService, ISubjectInfoService SubjectInfoService,
                          IProblemLibraryService ProblemLibraryService,
                          IAnswerService AnswerService,
                          IGrabTopicService grabTopic,
                          IExamClassService examClassService,
                          IExamProblemService examProblemService,
                          IExamAnswerService examAnswerService,
                          IImageInfoService imageInfoService)
 {
     _ProblemService         = ProblemService;
     _ProblemCategoryService = ProblemCategoryService;
     _BelongService          = BelongService;
     _ChapterService         = ChapterService;
     _SubjectInfoService     = SubjectInfoService;
     _ProblemLibraryService  = ProblemLibraryService;
     _AnswerService          = AnswerService;
     _grabTopic          = grabTopic;
     _examClassService   = examClassService;
     _examProblemService = examProblemService;
     _examAnswerService  = examAnswerService;
     _imageInfoService   = imageInfoService;
 }
Beispiel #4
0
 public CourseService(ICourseRepository courseRepository, IUserRepository userRepository, IPermissionService permissionService, IChapterService chapterService)
 {
     this.courseRepository  = courseRepository;
     this.userRepository    = userRepository;
     this.permissionService = permissionService;
     this.chapterService    = chapterService;
 }
Beispiel #5
0
 /// <summary>
 /// 依赖注入
 /// </summary>
 public CourseController(
     ICourseService courseService,
     IChapterService chapterService)
 {
     _courseService  = courseService;
     _chapterService = chapterService;
 }
        public ChapterPage()
        {
            this.InitializeComponent();

            _chapterService = NinjectContainer.Resolve <IChapterService>();

            ChaptersList = _chapterService.Read();
        }
 public ChapterController(
     IChapterService chapterService,
     IMapper mapper,
     IOptions <AppSettings> appSettings)
 {
     _chapterService = chapterService;
     _mapper         = mapper;
     _appSettings    = appSettings.Value;
 }
Beispiel #8
0
 public PreOrderController(IBookService bookService, IChapterService chapterService, IRecommendService recommendService, IUsersService usersService, IBookmarkService bookmarkService, IOrderService orderService)
 {
     _bookService      = bookService;
     _chapterService   = chapterService;
     _recommendService = recommendService;
     _usersService     = usersService;
     _bookmarkService  = bookmarkService;
     _orderService     = orderService;
 }
Beispiel #9
0
 public QuestionController(IClassService classService, ILogger logger, IRepository repository, IQuestionService questionService, ISubjectService subjectService, IChapterService chapterService)
 {
     _classService    = classService;
     _logger          = logger;
     _repository      = repository;
     _questionService = questionService;
     _subjectService  = subjectService;
     _chapterService  = chapterService;
 }
Beispiel #10
0
        public ChapterServiceTests()
        {
            _dbContext = new MockDbContext();
            var myProfile     = new MappingProfile();
            var configuration = new MapperConfiguration(cfg => cfg.AddProfile(myProfile));
            var mapper        = new Mapper(configuration);

            _chapterService = new ChapterService(_dbContext.DbContext, mapper);
        }
Beispiel #11
0
 public UsersController(
     IStoryService storyService,
     IChapterService chapterService,
     IIdentifierProvider identifierProvider)
 {
     this.storyService = storyService;
     this.chapterService = chapterService;
     this.identifierProvider = identifierProvider;
 }
Beispiel #12
0
 public HomeController(
     IChapterService chapterService,
     IIdentifierProvider identifierProvider,
     IStoryService storyService)
 {
     this.chapterService = chapterService;
     this.identifierProvider = identifierProvider;
     this.storyService = storyService;
 }
Beispiel #13
0
 public ChapterAdminService(IChapterRepository chapterRepository, ICacheService cacheService,
                            IChapterService chapterService, IMemberRepository memberRepository)
     : base(chapterRepository)
 {
     _cacheService      = cacheService;
     _chapterRepository = chapterRepository;
     _chapterService    = chapterService;
     _memberRepository  = memberRepository;
 }
 public CourseController(ILoggingService loggingService, ICourseService courseService,
                         IChapterService chapterService, ICourseDepartmentService courseDepartmentService,
                         IMainObjectiveService mainObjectiveService, ILearningOutcomeService learningOutcomeService) : base(loggingService)
 {
     _courseService           = courseService;
     _chapterService          = chapterService;
     _courseDepartmentService = courseDepartmentService;
     _mainObjectiveService    = mainObjectiveService;
     _learningOutcomeService  = learningOutcomeService;
 }
Beispiel #15
0
 public ChapterController(IBookService bookService, IChapterService chapterService, IRecommendService recommendService, IBookmarkService bookmarkService, IExtendChapterService extendChapterService, IADService adService, IOrderService orderService)
 {
     _bookService          = bookService;
     _chapterService       = chapterService;
     _recommendService     = recommendService;
     _bookmarkService      = bookmarkService;
     _extendChapterService = extendChapterService;
     _adService            = adService;
     _orderService         = orderService;
 }
Beispiel #16
0
 public OrderController(IRechargeFeeConfigService rechargeFeeConfigService, IRechargeService rechargeService, IBookService bookService, IChapterService chapterService, IOrderService orderService, IRechargeTypeService rechargeTypeService, IUsersService usersService)
 {
     _rechargeFeeConfigService = rechargeFeeConfigService;
     _rechargeService          = rechargeService;
     _bookService         = bookService;
     _chapterService      = chapterService;
     _orderService        = orderService;
     _rechargeTypeService = rechargeTypeService;
     _usersService        = usersService;
 }
 public ChapterController(ISubjectService subjectService, ILogger logger, IRepository repository, IChapterService chapterService, IClassService classService, IEmailService emailService, IAspNetRoles aspNetRolesService, IBranchAdminService branchAdminService)
 {
     _subjectService     = subjectService;
     _logger             = logger;
     _repository         = repository;
     _chapterService     = chapterService;
     _classService       = classService;
     _emailService       = emailService;
     _aspNetRolesService = aspNetRolesService;
     _branchAdminService = branchAdminService;
 }
 public QuestionController(IChapterService chapterService, ISubjectService subjectService,
                           IQuestionService questionService, IAuthorizationService authorizationService,
                           SignInManager <AppUser> signInManager, IHostingEnvironment hostingEnvironment)
 {
     _chapterService       = chapterService;
     _subjectService       = subjectService;
     _questionService      = questionService;
     _authorizationService = authorizationService;
     _signInManager        = signInManager;
     _hostingEnvironment   = hostingEnvironment;
 }
Beispiel #19
0
 public ChapterController(
     IStoryService storyService,
     IChapterService chapterService,
     IIdentifierProvider identifierProvider,
     IStatisticsService statisticsService)
 {
     this.storyService = storyService;
     this.chapterService = chapterService;
     this.identifierProvider = identifierProvider;
     this.statisticsService = statisticsService;
 }
Beispiel #20
0
 public HomeController(IRecommendService recommendService, IADService adService, IPackageService packageService, IBookService bookService, IPromotionLinkService promotionLinkService, INovelPromotionChannelService novelPromotionChannelService, IChapterService chapterService, IUsersService usersService)
 {
     _recommendService             = recommendService;
     _adService                    = adService;
     _packageService               = packageService;
     _bookService                  = bookService;
     _promotionLinkService         = promotionLinkService;
     _novelPromotionChannelService = novelPromotionChannelService;
     _chapterService               = chapterService;
     _usersService                 = usersService;
 }
Beispiel #21
0
 public ChapterController(IChapterService chapterService,
                          IChapterRepository chapterRepository,
                          IChapterConverter chapterConverter,
                          UserManager <User> userManager,
                          IMemoryCache memoryCache)
 {
     _chapterService    = chapterService;
     _chapterRepository = chapterRepository;
     _chapterConverter  = chapterConverter;
     _userManager       = userManager;
     _memoryCache       = memoryCache;
 }
Beispiel #22
0
 public CourseController(ICourseService courseService,
                         IChapterService chapterService,
                         IChapterRepository chapterRepository,
                         IAssignmentService assignmentService,
                         ICourseConverter courseConverter)
 {
     _courseService     = courseService;
     _chapterService    = chapterService;
     _chapterRepository = chapterRepository;
     _assignmentService = assignmentService;
     _courseConverter   = courseConverter;
 }
 public ChapterController(IHostingEnvironment hostingEnvironment,
                          IChapterService chapterService,
                          IWareHouseService wareHouseService,
                          IMapper mapper,
                          ICourseService courseService)
 {
     _hostingEnvironment = hostingEnvironment;
     _chapterService     = chapterService;
     _courseService      = courseService;
     _wareHouseService   = wareHouseService;
     _mapper             = mapper;
 }
Beispiel #24
0
 public BookController(IBookService bookService, IHotSearchWordService hotSearchWordService, IRecommendService recommendService, IBookmarkService bookmarkService, IPresentService presentService, IChapterService chapterService, ICommentService commentService, IPackageService packageService, IOrderService orderService)
 {
     _bookService          = bookService;
     _hotSearchWordService = hotSearchWordService;
     _recommendService     = recommendService;
     _bookmarkService      = bookmarkService;
     _presentService       = presentService;
     _chapterService       = chapterService;
     _commentService       = commentService;
     _packageService       = packageService;
     _orderService         = orderService;
 }
Beispiel #25
0
 public ChapterController(
     IFanficService fanficService,
     IChapterService chapterService,
     IChapterRatingService chapterRatingService,
     SignInManager <ApplicationUser> authManager,
     IMapper mapper)
 {
     _fanficService         = fanficService;
     _chapterService        = chapterService;
     _chapterRatingService  = chapterRatingService;
     _authenticationManager = authManager;
     _mapper = mapper;
 }
Beispiel #26
0
 public CourseController(ICourseService courseService,
                         ICourseLessonService courseLessonService,
                         IHostingEnvironment hostingEnvironment,
                         ICourseCategoryService courseCategoryService,
                         IChapterService chapterService,
                         IMapper mapper)
 {
     _hostingEnvironment    = hostingEnvironment;
     _courseService         = courseService;
     _courseLessonService   = courseLessonService;
     _chapterService        = chapterService;
     _courseCategoryService = courseCategoryService;
     _mapper = mapper;
 }
Beispiel #27
0
 public UserController(
     IFanficService fanficService,
     IChapterService chapterService,
     IGenreService genreService,
     SignInManager <ApplicationUser> authManager,
     IUserService userService,
     IMapper mapper)
 {
     _fanficService         = fanficService;
     _chapterService        = chapterService;
     _genreService          = genreService;
     _userService           = userService;
     _authenticationManager = authManager;
     _mapper = mapper;
 }
Beispiel #28
0
 public AssignmentService(IExerciseRepository exerciseRepository,
                          IChapterService chapterService,
                          IProjectService projectService,
                          IProjectComponentRepository projectComponentRepository,
                          ITestRepository testRepository,
                          ITestResultRepository testResultRepository,
                          IAssignmentWitResultsConverter assignmentWitResultsConverter,
                          ITestRunRepository testRunRepository)
 {
     _exerciseRepository            = exerciseRepository;
     _chapterService                = chapterService;
     _projectService                = projectService;
     _projectComponentRepository    = projectComponentRepository;
     _testRepository                = testRepository;
     _testResultRepository          = testResultRepository;
     _assignmentWitResultsConverter = assignmentWitResultsConverter;
     _testRunRepository             = testRunRepository;
 }
Beispiel #29
0
 public HomeController(IUserService userService
                       , IMapper mapper
                       , ICourseCategoryService courseCategoryService
                       , ICourseService courseService
                       , IChapterService chapterService
                       , IOrderService orderService
                       , IDiscountService discountService
                       , IOrderDetailService orderDetailService
                       , IHostingEnvironment hostingEnvironment)
 {
     _userService           = userService;
     _mapper                = mapper;
     _courseCategoryService = courseCategoryService;
     _courseService         = courseService;
     _chapterService        = chapterService;
     _orderService          = orderService;
     _discountService       = discountService;
     _orderDetailService    = orderDetailService;
     _hostingEnvironment    = hostingEnvironment;
 }
Beispiel #30
0
 public ChapterAdminController(IChapterService chapterService)
 {
     this.chapterService = chapterService;
 }
Beispiel #31
0
 public ChaptersController(IChapterService chapterService, IMapper mapper)
 {
     _chapterService = chapterService;
     _mapper         = mapper;
 }
 public ContentsController(IUnitOfWork ouw, ISubjectService subjectService, IChapterService chapterService)
 {
     _uow = ouw;
     _subjectService = subjectService;
     _chapterService = chapterService;
 }
 public ChapterController(IChapterService chapterService)
 {
     _chapterService = chapterService;
 }
Beispiel #34
0
 public NovelController(INovelService novelService,
                        IChapterService chapterService)
 {
     _novelService   = novelService;
     _chapterService = chapterService;
 }
 public ManagerChapterController(IChapterService chapterService)
 {
     this._chapterService = chapterService;
 }
 public ChapterController(ILoggingService loggingService, IChapterService chapterService) : base(loggingService)
 {
     _chapterService = chapterService;
 }