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