public PostController(IPrincipal principal, IUserTasks userTasks, IPostOverviewQuery postOverviewQuery, IPostTasks postTasks) { _principal = principal; _userTasks = userTasks; _postOverviewQuery = postOverviewQuery; _postTasks = postTasks; }
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>(); }
public FeedListQuery(IUserTasks userTasks, IPostTasks postTasks, IMvcUrlHelperProvider mvcUrlHelperProvider, IUserSearchPipeline userSearchPipeline, IUserInterestTasks userInterestTasks) { _userTasks = userTasks; _postTasks = postTasks; _mvcUrlHelperProvider = mvcUrlHelperProvider; _userSearchPipeline = userSearchPipeline; _userInterestTasks = userInterestTasks; }
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); }
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; }
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); }
public HomeController(IPostTasks postTasks) { _postTasks = postTasks; }
public InterestFeedQuery( IUserTasks userTasks, IPostTasks postTasks) { _userTasks = userTasks; _postTasks = postTasks; }