Esempio n. 1
0
 public PostController(ViewManager viewManager, IAuthenticationService authenticationService, ICommandBus commandBus)
     : base(commandBus)
 {
     _postView = viewManager.GetView<IPostView>();
     _blogView = viewManager.GetView<IBlogView>();
     _authenticationService = authenticationService;
 }
Esempio n. 2
0
 public BlogController(IBlogView view, IList blogList)
 {
     _view     = view;
     _blogList = blogList;
     view.SetController(this);
     blogService = new BlogService();
 }
Esempio n. 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>();
 }
Esempio n. 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;
 }
Esempio n. 5
0
 public BlogPresenter(IBlogView blogView)
 {
     this.blogView = blogView;
 }
Esempio n. 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);
 }
Esempio n. 8
0
 public BlogExistFilter(IBlogView blogView)
 {
     _blogView = blogView;
 }
Esempio n. 9
0
 public BlogPresenter(IBlogView view, IBlogSystemData data)
 {
     this.view = view;
     this.Data = data;
 }
Esempio n. 10
0
 public BlogPresenter(IBlogView view)
 {
     this.view = view;
 }