Esempio n. 1
0
 public NewsController(INewsService newsService, UserManager <User> userManager, ICommentaryService commentaryService, IRatingService ratingService, ILikeService likeService)
 {
     this.newsService       = newsService;
     this.userManager       = userManager;
     this.commentaryService = commentaryService;
     this.ratingService     = ratingService;
     this.likeService       = likeService;
 }
 public FanficController(IFanficService fanficService, ITagService tagService, IGenreService genreService, IRatingService ratingService, ICommentaryService commentaryService)
 {
     _fanficService     = fanficService;
     _tagService        = tagService;
     _genreService      = genreService;
     _ratingService     = ratingService;
     _commentaryService = commentaryService;
 }
Esempio n. 3
0
 public UsersController(UserManager <User> userManager, RoleManager <IdentityRole <int> > roleManager, IRatingService ratingService, ICommentaryService commentaryService, ILikeService likeService, INewsService newsService, SignInManager <User> signInManager)
 {
     _userManager           = userManager;
     _roleManager           = roleManager;
     this.ratingService     = ratingService;
     this.commentaryService = commentaryService;
     this.likeService       = likeService;
     this.newsService       = newsService;
     _signInManager         = signInManager;
 }
        public void Setup()
        {
            Commentaries = new CommentaryDto[] { new CommentaryDto()
                                                 {
                                                     Content = "Ololo", Id = Guid.NewGuid(), UserId = "1"
                                                 } };

            _CommentaryService = Substitute.For <ICommentaryService>();
            _CommentaryService.GetCommentariesByVideoId(Arg.Any <Guid>()).Returns(Commentaries);
            _CommentaryService.GetCommentaryById(Arg.Any <Guid>()).Returns(Commentaries.First());
        }
Esempio n. 5
0
 public CommentaryController(ICommentaryService service)
 {
     _commentaryService = service;
 }
 public CommentController(ICommentaryService commentaryService, IMapper mapper)
 {
     _commentaryService = commentaryService;
     _mapper            = mapper;
 }
 public CommentariesHub(ICommentaryService commentaryService, ILikeService likeService)
 {
     this.commentaryService = commentaryService;
     this.likeService       = likeService;
 }
 public CommentariesController(ICommentaryService service, IMapper mapper)
 {
     this.service = service;
     this.mapper  = mapper;
 }