public void ShowInformsViewToShow()
        {
            var view      = new MockNewsReaderView();
            var presenter = new NewsReaderPresenter(view);

            presenter.Show();

            Assert.IsTrue(view.ShowViewWasCalled);
        }
        public void ShowInformsViewToShow()
        {
            var view = new MockNewsReaderView();
            var presenter = new NewsReaderPresenter(view);

            presenter.Show();

            Assert.IsTrue(view.ShowViewWasCalled);

        }
        public void SetNewsArticlesSetsViewModel()
        {
            var view = new MockNewsReaderView();
            var presenter = new NewsReaderPresenter(view);

            NewsArticle article = new NewsArticle() { Title = "My Title", Body = "My Body" };
            presenter.SetNewsArticle(article);

            Assert.AreSame(article,view.Model);

        }
        public void SetNewsArticlesSetsViewModel()
        {
            var view      = new MockNewsReaderView();
            var presenter = new NewsReaderPresenter(view);

            NewsArticle article = new NewsArticle()
            {
                Title = "My Title", Body = "My Body"
            };

            presenter.SetNewsArticle(article);

            Assert.AreSame(article, view.Model);
        }