public void ConstructorShouldInitializeView()
        {
            var searchViewMock = new VisualizerViewMock();

            searchViewMock.ControlView = new FilterParametesViewMock();

            var searchPresenter = new VisualizerPresenter(searchViewMock, new FilterParametersPresenter(new FilterParametesViewMock()));

            Assert.That(searchPresenter.View, Is.EqualTo(searchViewMock));
        }
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            var form      = new  PcapVisualizerForm();
            var presenter = new VisualizerPresenter(form, new FilterParametersPresenter(form.ControlView));

            Application.Run(form);
        }
        public void SetUp()
        {
            _viewParametersMock = new Mock <IFilterParametersView>();
            _viewParametersMock.Setup(view => view.ViewModel).Returns(new FilterParametersViewModel());

            _viewMock = new Mock <IVisualizerView>();
            _viewMock.Setup(view => view.ControlView).Returns(_viewParametersMock.Object);
            _viewMock.Setup(view => view.ViewModel).Returns(new VisualizerViewModel());

            _presenter = new VisualizerPresenter(_viewMock.Object, new FilterParametersPresenter(_viewParametersMock.Object));
        }
        public void InitializeShouldSetViewModel()
        {
            var searchViewMock = new VisualizerViewMock();

            searchViewMock.ControlView = new FilterParametesViewMock();

            var searchPresenter = new VisualizerPresenter(searchViewMock, new FilterParametersPresenter(new FilterParametesViewMock()));
            var searchViewModel = new VisualizerViewModel();

            searchPresenter.Initialize(searchViewModel);

            Assert.That(searchViewMock.ViewModel, Is.EqualTo(searchViewModel));
        }