コード例 #1
0
ファイル: BlogController.cs プロジェクト: hopnguyenvn/HNBlog
 public BlogController(IPostListQuery postListQuery, IBlogTasks blogRepository)
 {
     this.blogRepository = blogRepository;
     this.postListQuery = postListQuery;
 }
コード例 #2
0
 protected void Setup()
 {
     postsListQuery = new PostListQuery();
     blogRepository = CreateMockIBlogTask();
     controller = new BlogController(postsListQuery,
                        blogRepository);
     //ServiceLocatorInitializer.Init();
     //base.SetUp();
 }