public void WhenExceptionOccuredOnRssCall_ThrowException()
        {
            var mockFeedService = new Mock <IFeedService>();

            mockFeedService.Setup(m => m.GetRssFeed()).Throws(new NullReferenceException());
            var bbcFeedController = new BbcFeedController(mockFeedService.Object);

            //Act
            var response = bbcFeedController.GetRssFeed();
        }
        public void WhenInValidRssCallInvoked_ReturnFailureResponse()
        {
            var mockFeedService = new Mock <IFeedService>();

            mockFeedService.Setup(m => m.GetRssFeed()).Returns(TestDataGenerator.CreateFakeFailureFeedResponse());
            var bbcFeedController = new BbcFeedController(mockFeedService.Object);

            //Act
            var response = bbcFeedController.GetRssFeed();

            // Assert
            Assert.IsTrue(response != null && response.Feeds != null);
            Assert.IsTrue(response.Feeds.Count <= 0);
            Assert.IsTrue(response.Result != null && response.Result.ResultStatus == ResultStatus.Fail);
        }