public SubscriptionsController(ISubscriptionsService subscriptions, ICoursesService courses, IUserService users, ICoursesContentService coursesContent)
 {
     _subscriptions  = subscriptions;
     _courses        = courses;
     _users          = users;
     _coursesContent = coursesContent;
 }
Пример #2
0
 public LectureController(IUmbracoMapper mapper, ISubscriptionsService subscriptions, ILecturesService lectures, ICoursesContentService coursesContentService)
 {
     _mapper                = mapper;
     _subscriptions         = subscriptions;
     _lectures              = lectures;
     _coursesContentService = coursesContentService;
 }
Пример #3
0
 public FeedbackController(IFeedbackService feedbackService, ICoursesContentService coursesContentService, IUmbracoMapper mapper, IUserService userService, ISubscriptionsService subscriptionsService)
 {
     _feedbackService       = feedbackService;
     _coursesContentService = coursesContentService;
     _mapper               = mapper;
     _userService          = userService;
     _subscriptionsService = subscriptionsService;
 }
 //TODO improve code quality:
 // * Use xxxContentService to retrieve umbraco content
 // * Extract duplicate code between GET and POST methods
 public AssessmentController(IUmbracoMapper mapper, IAssessmentsService assessments, IUserService users, ICoursesContentService coursesContentService, IFeedbackService feedbackService)
 {
     _mapper                = mapper;
     _assessments           = assessments;
     _users                 = users;
     _coursesContentService = coursesContentService;
     _feedbackService       = feedbackService;
 }
Пример #5
0
 public ProfileController(IUserService usersService, ISubscriptionsService subscriptions, IMembershipService membershipService, ICoursesContentService coursesContentService, ICertificatesService certificatesService, IPaymentService paymentService, IOrdersService ordersService)
 {
     _usersService          = usersService;
     _subscriptions         = subscriptions;
     _membershipService     = membershipService;
     _coursesContentService = coursesContentService;
     _certificatesService   = certificatesService;
     _paymentService        = paymentService;
     _ordersService         = ordersService;
 }
        public JoinCourseViewModelValidator(ICoursesContentService coursesContent, ICoursesService courses)
        {
            _coursesContent = coursesContent;
            _courses        = courses;

            RuleFor(x => x.AcceptLicenseTerms).Equal(true).WithMessage("Трябва да приемете общите условия");
            When(
                x =>
            {
                Course course = _coursesContent.GetCourseByNiceUrl(x.CourseNiceUrl);
                return(_courses.IsPaidCourse(course));
            },
                () =>
            {
                RuleFor(x => x.BillingInfo)
                .NotNull()
                .WithMessage("Моля попълнете информацията за фактура");
            });
        }
Пример #7
0
 public CertificateGenerationInfoProvider(IUmbracoMapper mapper, ICoursesContentService coursesContentService)
 {
     _mapper = mapper;
     _coursesContentService = coursesContentService;
 }
Пример #8
0
 public RouteProvider(ICoursesContentService coursesContentService)
 {
     _coursesContentService = coursesContentService;
 }