public void SetUp()
        {
            data = DataCollection.Comments;
            var repo = MockRepository <Comment> .Initialize(data);

            commentService = new CommentService(repo);
        }
Exemplo n.º 2
0
 public VideoService(
     IDeletableEntityRepository <Video> videoRepository,
     ICommentSerivce commentSerivce,
     IRateService rateService
     )
 {
     this.videoRepository = videoRepository;
     this.commentSerivce  = commentSerivce;
     this.rateService     = rateService;
 }
Exemplo n.º 3
0
        public AccountService(
            IDeletableEntityRepository <ApplicationUser> userRepository,
            IVideoService videoService,
            ICommentSerivce commentSerivce,
            IRateService rateService

            )
        {
            this.videoService   = videoService;
            this.userRepository = userRepository;
            this.commentSerivce = commentSerivce;
            this.rateService    = rateService;
        }
 public CommentController(ICommentSerivce commentSerivce)
 {
     this.commentSerivce = commentSerivce;
 }