public void WhenAnyExceptionOccured_ThrowException()
        {
            var mockBroadbandService = new Mock <IBroadbandService>();

            mockBroadbandService.Setup(m => m.GetBroadbandDeals(null)).Throws(new NullReferenceException());
            var bbcFeedController = new BroadbandDealController(mockBroadbandService.Object);

            //Act
            var response = bbcFeedController.Get(null);
        }
        public void WhenValidInputPassed_ReturnMatchingBroadbandDeals()
        {
            var mockBroadbandService = new Mock <IBroadbandService>();

            mockBroadbandService.Setup(m => m.GetBroadbandDeals(It.IsAny <Entities.Request.BroadbandRequest>())).Returns(TestDataGenerator.CreateFakeBroadbandResult());
            var bbcFeedController = new BroadbandDealController(mockBroadbandService.Object);

            //Act
            var response = bbcFeedController.Get(new Entities.Request.BroadbandRequest());

            // Assert
            Assert.IsTrue(response != null && response.Deals != null);
            Assert.IsTrue(response.Deals.Count > 0);
            Assert.IsTrue(response.Result != null && response.Result.ResultStatus == ResultStatus.Success);
        }