コード例 #1
0
 public CommentController(ICommentMapper commentMapper, IImageAlbumService imageAlbumService, ICommentService commentService, IMembershipService membershipService)
 {
     this._commentMapper = commentMapper;
     this._imageAlbumService = imageAlbumService;
     this._commentService = commentService;
     this._membershipService = membershipService;
 }
コード例 #2
0
 public CommentController(
     ICommentMapper commentMapper, 
     IAddEntityCommand addEntityCommand, 
     ICommentControllerValidator validator)
 {
     this.commentMapper = commentMapper;
     this.addEntityCommand = addEntityCommand;
     this.validator = validator;
 }
コード例 #3
0
 public UserCommentService(
     IRedditCloneUnitOfWork unitOfWork,
     UserManager <User> userManager,
     ICommentMapper commentMapper)
 {
     this.unitOfWork    = unitOfWork;
     this.userManager   = userManager;
     this.commentMapper = commentMapper;
 }
コード例 #4
0
 public CommentService(PizzeriaContext context, IPizzaService pizzaService, ICommentMapper commentMapper) : base(context)
 {
     _context       = context;
     _commentMapper = commentMapper;
     _pizzaService  = pizzaService;
 }
コード例 #5
0
 public CommentService(ICommentRepository repository, ICommentMapper mapper) : base(repository)
 {
     _repository = repository;
     _mapper     = mapper;
 }
コード例 #6
0
 public PizzaMapper(ICommentMapper commentMapper, IIngredientMapper ingredientMapper)
 {
     _commentMapper    = commentMapper;
     _ingredientMapper = ingredientMapper;
 }