public void Constructor_ValidInput_DetailsCorrect()
        {
            // Fixture setup
            var expectedTitle = "News title";
            var expectedText = "News text";
            Uri expectedImageSource = null;

            var expectedPublicationDate = DateTimeOffset.Now;
            var channelName = "News channel";
            var expectedPublicationDetails = expectedPublicationDate.ToString("dd.MM.yyy - HH:mm") + " • " + channelName;

            var newsChannel = new NewsChannel(channelName, new Uri("http://news.com/rss"));
            var newsItem = new NewsItem(expectedTitle, expectedText, expectedPublicationDate, expectedImageSource);

            // Exercise system
            var viewModel = new NewsDetailsViewModel(newsChannel, newsItem);

            // Verify outcome
            Assert.AreEqual(viewModel.Title, expectedTitle);
            Assert.AreEqual(viewModel.Text, expectedText);
            Assert.AreEqual(viewModel.PublicationDate, expectedPublicationDate);
            Assert.AreEqual(viewModel.ImageSource, expectedImageSource);
            Assert.AreEqual(viewModel.PublicationDetails, expectedPublicationDetails);

            // Teardown
        }
 public FeedItemSelectedArgs(NewsDetailsViewModel selected)
 {
     Selected = selected;
 }
 private void NavigateToDetailsPage(NewsDetailsViewModel dataContext)
 {
    Frame.Navigate(typeof (NewsDetailsPage), dataContext);
 }