public PostController(IPrincipal principal, IUserTasks userTasks, IPostOverviewQuery postOverviewQuery, IPostTasks postTasks)
 {
     _principal = principal;
     _userTasks = userTasks;
     _postOverviewQuery = postOverviewQuery;
     _postTasks = postTasks;
 }
Beispiel #2
0
 public MetaWeblog()
 {
     //Note: This is because I am not sure how else to handle DI with http handlers
     _userTasks = ServiceLocator.Current.GetInstance<IUserTasks>();
     _postTasks = ServiceLocator.Current.GetInstance<IPostTasks>();
     _tagTasks = ServiceLocator.Current.GetInstance<ITagTasks>();
 }
Beispiel #3
0
 public FeedListQuery(IUserTasks userTasks, IPostTasks postTasks, IMvcUrlHelperProvider mvcUrlHelperProvider, IUserSearchPipeline userSearchPipeline, IUserInterestTasks userInterestTasks)
 {
     _userTasks = userTasks;
     _postTasks = postTasks;
     _mvcUrlHelperProvider = mvcUrlHelperProvider;
     _userSearchPipeline = userSearchPipeline;
     _userInterestTasks = userInterestTasks;
 }
Beispiel #4
0
 public BlogMLImporter(IPostTasks tasks, IUserTasks users, IBlogMLToPostMapper postMapper,
     IBlogMLToCommentMapper commentMapper)
 {
     _tasks = tasks;
     _users = users;
     _postMapper = postMapper;
     _commentMapper = commentMapper;
 }
 public void SetUp()
 {
     _postTasks = MockRepository.GenerateMock<IPostTasks>();
     _userTasks = MockRepository.GenerateMock<IUserTasks>();
     _postEditDetailsMapper = MockRepository.GenerateMock<IPostEditDetailsMapper>();
     _postCreateDetailsMapper = MockRepository.GenerateMock<IPostCreateDetailsMapper>();
     _postRepository = MockRepository.GenerateMock<IPostRepository>();
     _controller = new PostController(_postTasks, _postRepository, _userTasks, _postCreateDetailsMapper, _postEditDetailsMapper);
 }
Beispiel #6
0
 public PostController(IPostTasks postTasks, 
     IPostRepository posts,
     IUserTasks userTasks,
     IPostCreateDetailsMapper postCreateMapper,
     IPostEditDetailsMapper postEditMapper)
 {
     _postTasks = postTasks;
       _posts = posts;
       _userTasks = userTasks;
       _postCreateMapper = postCreateMapper;
       _postEditMapper = postEditMapper;
 }
 public PostOverviewQuery(IPostTasks postTasks, IUserInterestTasks userInterestTasks)
 {
     _postTasks = postTasks;
     _userInterestTasks = userInterestTasks;
 }
Beispiel #8
0
 public MetaWeblog(IUserTasks userTasks, IPostTasks postTasks, ITagTasks tagTasks)
 {
     _userTasks = userTasks;
     _postTasks = postTasks;
     _tagTasks = tagTasks;
 }
 public void SetUp()
 {
     _tasks = MockRepository.GenerateMock<IPostTasks>();
     _controller = new HomeController(_tasks);
 }
Beispiel #10
0
 public HomeController(IPostTasks postTasks)
 {
     _postTasks = postTasks;
 }
 public InterestFeedQuery( IUserTasks userTasks, IPostTasks postTasks)
 {
     _userTasks = userTasks;
     _postTasks = postTasks;
 }