Example #1
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();
 }