コード例 #1
0
 public PostAppService(IPostService postService, ICommentService commentService, ICategoryService categoryService, IPostValidation postValidation)
 {
     this.postService = postService;
     this.commentService = commentService;
     this.categoryService = categoryService;
     this.postValidation = postValidation;
 }
コード例 #2
0
 public PostAppService()
 {
     this.postValidation = ValidationFactory.GetPostValidation();
     this.postService = ServiceFactory.GetPostService(RepositoryFactory.GetPostRepository(), this.postValidation);
     this.commentService = ServiceFactory.GetCommentService(RepositoryFactory.GetCommentRepository(), null);
     this.categoryService = ServiceFactory.GetCategoryService(RepositoryFactory.GetCategoryRepository(), null);
 }        
コード例 #3
0
 public PostAppService()
 {
     this.postValidation  = ValidationFactory.GetPostValidation();
     this.postService     = ServiceFactory.GetPostService(RepositoryFactory.GetPostRepository(), this.postValidation);
     this.commentService  = ServiceFactory.GetCommentService(RepositoryFactory.GetCommentRepository(), null);
     this.categoryService = ServiceFactory.GetCategoryService(RepositoryFactory.GetCategoryRepository(), null);
 }
コード例 #4
0
 public PostAppService(IPostService postService, ICommentService commentService, ICategoryService categoryService, IPostValidation postValidation)
 {
     this.postService     = postService;
     this.commentService  = commentService;
     this.categoryService = categoryService;
     this.postValidation  = postValidation;
 }
コード例 #5
0
 public static IPostService GetPostService(IPostRepository repository, IPostValidation validation)
 {
     return(new PostService(repository, validation));
 }
コード例 #6
0
 public static IPostService GetPostService(IPostRepository repository, IPostValidation validation)
 {
     return new PostService(repository, validation);
 }
コード例 #7
0
 public PostService(IPostRepository postRepository, IPostValidation postValidation)
 {
     this.postRepository = postRepository;
     this.postValidation = postValidation;
 }
コード例 #8
0
ファイル: PostService.cs プロジェクト: jordiruiz/Joomiz.Blog
 public PostService(IPostRepository postRepository, IPostValidation postValidation)
 {
     this.postRepository = postRepository;
     this.postValidation = postValidation;
 }