Example #1
0
 public PostAppService(IPostService postService, ICommentService commentService, ICategoryService categoryService, IPostValidation postValidation)
 {
     this.postService = postService;
     this.commentService = commentService;
     this.categoryService = categoryService;
     this.postValidation = postValidation;
 }
Example #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);
 }        
Example #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);
 }
Example #4
0
 public PostAppService(IPostService postService, ICommentService commentService, ICategoryService categoryService, IPostValidation postValidation)
 {
     this.postService     = postService;
     this.commentService  = commentService;
     this.categoryService = categoryService;
     this.postValidation  = postValidation;
 }
Example #5
0
 public static IPostService GetPostService(IPostRepository repository, IPostValidation validation)
 {
     return(new PostService(repository, validation));
 }
Example #6
0
 public static IPostService GetPostService(IPostRepository repository, IPostValidation validation)
 {
     return new PostService(repository, validation);
 }
Example #7
0
 public PostService(IPostRepository postRepository, IPostValidation postValidation)
 {
     this.postRepository = postRepository;
     this.postValidation = postValidation;
 }
Example #8
0
 public PostService(IPostRepository postRepository, IPostValidation postValidation)
 {
     this.postRepository = postRepository;
     this.postValidation = postValidation;
 }