public CommentControllerTest(Fixed.Fixture fix) { this.commentAddUseCase = fix.Container.Resolve <ICommentAddUseCase>(); this.commentUpdateUseCase = fix.Container.Resolve <ICommentUpdateUseCase>(); this.commentRemoveUseCase = fix.Container.Resolve <ICommentRemoveUseCase>(); this.commentGetAllUseCase = fix.Container.Resolve <ICommentGetAllUseCase>(); this.commentGetByIdUseCase = fix.Container.Resolve <ICommentGetByIdUseCase>(); this.commentOne = new Comment("CommentTestOne"); this.commentTwo = new Comment("CommentTestTwo"); this.commentController = new CommentController(commentAddUseCase, commentUpdateUseCase, commentRemoveUseCase, commentGetAllUseCase, commentGetByIdUseCase); }
public CommentController( ICommentAddUseCase commentAddUseCase, ICommentUpdateUseCase commentUpdateUseCase, ICommentRemoveUseCase commentRemoveUseCase, ICommentGetAllUseCase commentGetAllUseCase, ICommentGetByIdUseCase commentGetByIdUseCase) { this.commentAddUseCase = commentAddUseCase; this.commentUpdateUseCase = commentUpdateUseCase; this.commentRemoveUseCase = commentRemoveUseCase; this.commentGetAllUseCase = commentGetAllUseCase; this.commentGetByIdUseCase = commentGetByIdUseCase; }