/// <summary>
        /// Initializes a new instance of the <see cref="PostController"/> class.
        /// </summary>
        /// <param name="blogTasks">
        /// The blog tasks.
        /// </param>
        /// <param name="blogPostSaveDetailsMapper">
        /// The blog post save details mapper.
        /// </param>
        /// <param name="blogPostPageViewModelMapper">
        /// The blog post page view model mapper.
        /// </param>
        /// <param name="identityService">
        /// The identity Service.
        /// </param>
        /// <param name="blogPostCommentSaveDetailsMapper">
        /// The blog Post Comment Save Details Mapper.
        /// </param>
        /// <param name="cachingProvider">
        /// The caching provider.
        /// </param>
        public PostController(
            IBlogTasks blogTasks, 
            IBlogPostSaveDetailsMapper blogPostSaveDetailsMapper, 
            IBlogPostPageViewModelMapper blogPostPageViewModelMapper, 
            IIdentityService identityService,
            IBlogPostCommentSaveDetailsMapper blogPostCommentSaveDetailsMapper, ICachingProvider cachingProvider)
        {

            this.blogTasks = blogTasks;
            this.cachingProvider = cachingProvider;
            this.blogPostSaveDetailsMapper = blogPostSaveDetailsMapper;
            this.blogPostPageViewModelMapper = blogPostPageViewModelMapper;
            this.identityService = identityService;
            this.blogPostCommentSaveDetailsMapper = blogPostCommentSaveDetailsMapper;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="BlogController"/> class.
 /// </summary>
 /// <param name="blogTasks">
 /// The blog tasks.
 /// </param>
 /// <param name="blogPostTasks">
 /// The blog Post Tasks.
 /// </param>
 /// <param name="blogSaveDetailsMappper">
 /// The blog Save Details Mappper.
 /// </param>
 /// <param name="blogPageViewModelMapper">
 /// The blog Page View Model Mapper.
 /// </param>
 /// <param name="blogPostListPageViewModelMapper">
 /// The blog Post List Page View Model Mapper.
 /// </param>
 /// <param name="blogPostArchivePageViewModelMapper">
 /// The blog Post Archive Page View Model Mapper.
 /// </param>
 /// <param name="identityService">
 /// The identity Service.
 /// </param>
 /// <param name="cachingProvider">
 /// The caching provider.
 /// </param>
 /// <param name="blogUserPageViewModelMapper">
 /// The blog User Page View Model Mapper.
 /// </param>
 public BlogController(
     IBlogTasks blogTasks,
     IBlogPostTasks blogPostTasks,
     IBlogSaveDetailsMappper blogSaveDetailsMappper,
     IBlogPageViewModelMapper blogPageViewModelMapper,
     IBlogPostListPageViewModelMapper blogPostListPageViewModelMapper,
     IBlogPostArchivePageViewModelMapper blogPostArchivePageViewModelMapper,
     IIdentityService identityService,
     ICachingProvider cachingProvider,
     IBlogUserPageViewModelMapper blogUserPageViewModelMapper)
 {
     this.blogTasks = blogTasks;
     this.blogUserPageViewModelMapper = blogUserPageViewModelMapper;
     this.identityService = identityService;
     this.cachingProvider = cachingProvider;
     this.blogPostTasks = blogPostTasks;
     this.blogSaveDetailsMappper = blogSaveDetailsMappper;
     this.blogPageViewModelMapper = blogPageViewModelMapper;
     this.blogPostListPageViewModelMapper = blogPostListPageViewModelMapper;
     this.blogPostArchivePageViewModelMapper = blogPostArchivePageViewModelMapper;
 }
Exemple #3
0
 public BlogController(IPostListQuery postListQuery, IBlogTasks blogRepository)
 {
     this.blogRepository = blogRepository;
     this.postListQuery = postListQuery;
 }
 protected void Setup()
 {
     postsListQuery = new PostListQuery();
     blogRepository = CreateMockIBlogTask();
     controller = new BlogController(postsListQuery,
                        blogRepository);
     //ServiceLocatorInitializer.Init();
     //base.SetUp();
 }