示例#1
0
 public PostController(ViewManager viewManager, IAuthenticationService authenticationService, ICommandBus commandBus)
     : base(commandBus)
 {
     _postView = viewManager.GetView<IPostView>();
     _blogView = viewManager.GetView<IBlogView>();
     _authenticationService = authenticationService;
 }
示例#2
0
 public BlogController(IBlogView view, IList blogList)
 {
     _view     = view;
     _blogList = blogList;
     view.SetController(this);
     blogService = new BlogService();
 }
示例#3
0
 public BlogController(ViewManager viewManager, IAuthenticationService authenticationService, ICommandBus commandBus, IEventBus eventBus, IEventStore eventStore)
     : base(commandBus)
 {
     _viewManager = viewManager;
     _authenticationService = authenticationService;
     _eventBus = eventBus;
     _eventStore = eventStore;
     _blogView = _viewManager.GetView<IBlogView>();
     _userView = _viewManager.GetView<IUserView>();
 }
示例#4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BlogPresenter"/> class.
 /// </summary>
 /// <param name="view">The view.</param>
 /// <param name="service">The service.</param>
 /// <remarks>
 /// Use "Dependency Injection" to attach the dependencies for the view and service.
 /// </remarks>
 public BlogPresenter(IBlogView view, IBlogService service)
 {
     _view    = view;
     _service = service;
 }
示例#5
0
 public BlogPresenter(IBlogView blogView)
 {
     this.blogView = blogView;
 }
示例#6
0
 public FeedController(ViewManager viewManager, IAuthenticationService authenticationService)
 {
     _postView = viewManager.GetView<IPostView>();
     _blogView = viewManager.GetView<IBlogView>();
 }
 public void SetUp()
 {
     view      = new BlogViewMock();
     service   = new BlogServiceMock();
     presenter = new BlogPresenter(view, service);
 }
示例#8
0
 public BlogExistFilter(IBlogView blogView)
 {
     _blogView = blogView;
 }
示例#9
0
 public BlogPresenter(IBlogView view, IBlogSystemData data)
 {
     this.view = view;
     this.Data = data;
 }
示例#10
0
 public BlogPresenter(IBlogView view)
 {
     this.view = view;
 }