コード例 #1
0
ファイル: RssController.cs プロジェクト: prakasha/Orchard1.4
 public RssController(ICourseService courseService, IYearService yearService, ICourseMenuService menuService, IContentManager contentManager, IRepository<PostRecord> postRepo)
 {
     this.contentManager = contentManager;
     this.yearService = yearService;
     this.courseService = courseService;
     this.menuService = menuService;
     this.postRepo = postRepo;
 }
コード例 #2
0
 public InscriptionController(IInscriptionService inscriptionService, ICareerService careerService, ICourseService courseService, IYearService yearService, IRatingService ratingService)
 {
     _inscriptionService = inscriptionService;
     _careerService      = careerService;
     _courseService      = courseService;
     _yearService        = yearService;
     _ratingService      = ratingService;
 }
コード例 #3
0
 public YearsController(IUnitOfWork <SchoolDBContext> unitOfWork,
                        SchoolDBContext schoolDBContext,
                        IMasterService masterService,
                        IYearService yearService)
 {
     _unitOfWork      = unitOfWork;
     _schoolDBContext = schoolDBContext;
     _masterService   = masterService;
     _yearService     = yearService;
 }
コード例 #4
0
 public CourseMenuController(IContentManager contentManager, IShapeFactory shapeFactory, IRepository<MailSubscriptionRecord> subscriptionRepo, IRepository<PostRecord> postRepo, ICourseService courseService, IYearService yearService, ICourseMenuService menuService, IAuthenticationService authenticationService)
 {
     this.Shape = shapeFactory;
     this.contentManager = contentManager;
     this.subscriptionRepo = subscriptionRepo;
     this.postRepo = postRepo;
     this.yearService = yearService;
     this.courseService = courseService;
     this.menuService = menuService;
     this.authenticationService = authenticationService;
     T = NullLocalizer.Instance;
 }
コード例 #5
0
ファイル: CourseController.cs プロジェクト: clopez609/nogupe
 public CourseController(ICourseService courseService, ICareerService careerService, IMatterService matterService,
                         IWeekdayService weekdayService, IUserService userService, IWallService wallService, IInscriptionService inscriptionService,
                         IYearService yearService, ICommentService commentService, IRatingService ratingService, IAssistanceService assistanceService)
 {
     _courseService      = courseService;
     _careerService      = careerService;
     _matterService      = matterService;
     _weekdayService     = weekdayService;
     _userService        = userService;
     _wallService        = wallService;
     _inscriptionService = inscriptionService;
     _yearService        = yearService;
     _commentService     = commentService;
     _ratingService      = ratingService;
     _assistanceService  = assistanceService;
 }
コード例 #6
0
ファイル: PostHandler.cs プロジェクト: prakasha/Orchard1.4
 public PostHandler(ICourseMenuService menuService, IYearService yearService, ICourseService courseService, IRepository<MailSubscriptionRecord> mailRepo, IMembershipService membershipService, IMessageManager messageManager, IRepository<PostRecord> postRepo, IHttpContextAccessor httpContextAccessor)
 {
     this.courseService = courseService;
     this.yearService = yearService;
     this.menuService = menuService;
     this.httpContextAccessor = httpContextAccessor;
     this.postRepo = postRepo;
     this.mailRepo = mailRepo;
     this.messageManager = messageManager;
     this.membershipService = membershipService;
     OnPublished<RoutePart>((context, part) =>
     {
         var item = postRepo.Fetch(x => x.ContentId == part.ContentItem.Id).FirstOrDefault();
         if (item != null)
         {
             var menu = menuService.Get(item.Menu.Id);
             sendEmail(menu.Id, part.ContentItem);
         }
         
     });
 }
コード例 #7
0
 public YearController(IYearService yearService)
 {
     _yearService = yearService;
 }
コード例 #8
0
 public MatterController(IMatterService matterService, ICareerService careerService, IYearService yearService)
 {
     _matterService = matterService;
     _careerService = careerService;
     _yearService   = yearService;
 }
コード例 #9
0
 public Year2ViewComponent(IYearService yearService)
 {
     this.yearService = yearService;
 }
コード例 #10
0
 /// <summary>
 /// Initializes a new Instance of <see cref="YearController"/>
 /// </summary>
 /// <param name="service">Injected <see cref="IYearService"/></param>
 public YearController(IYearService service) => Service = service;
コード例 #11
0
 public TaxServiceTests()
 {
     _stub = Substitute.For <IYearService>();
 }
コード例 #12
0
 public TaxService(IYearService yearService)
 {
     _yearService = yearService;
 }
コード例 #13
0
 public GetYear(IYearService yearService)
 {
     _yearService = yearService;
 }
コード例 #14
0
 //Constructor
 public YearController()
 {
     this.YearService = new YearService();
 }