コード例 #1
0
 public CategoryService(
     IAsyncRepository <Category> repository,
     IImageNameGenerator generator,
     IPaginationMaker maker)
 {
     this.repository = repository;
     this.generator  = generator;
     this.maker      = maker;
 }
コード例 #2
0
 public ImageService(
     IAsyncRepository <Category> categoryRepo,
     IImageRepository imageRepo,
     IImageNameGenerator generator,
     IPaginationMaker maker,
     IAsyncRepository <Comment> commentRepo)
 {
     this.categoryRepo = categoryRepo;
     this.imageRepo    = imageRepo;
     this.generator    = generator;
     this.pgMaker      = maker;
     this.commentRepo  = commentRepo;
 }