public void SetUp() { data = DataCollection.Comments; var repo = MockRepository <Comment> .Initialize(data); commentService = new CommentService(repo); }
public VideoService( IDeletableEntityRepository <Video> videoRepository, ICommentSerivce commentSerivce, IRateService rateService ) { this.videoRepository = videoRepository; this.commentSerivce = commentSerivce; this.rateService = rateService; }
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; }