public void InvokeTest_NoItemToConsume()
        {
            showRssItemrepository.Setup(x => x.FindFirstQueuedItem()).Returns((ShowRssItem)null);
            var service = new ShowRssFeedConsumerJob(
                logger.Object,
                showRssItemrepository.Object,
                downloadItemService.Object,
                userRepository.Object);

            service.Invoke();
            DownloadItemActionError error;

            downloadItemService.Verify(x => x.StartDownload(It.IsAny <DownloadItem>(), out error), Times.Never);
        }
        public void InvokeTest_StartFailed()
        {
            userRepository.Setup(c => c.GetDaemonUser()).Returns(new User());
            showRssItemrepository.Setup(x => x.FindFirstQueuedItem()).Returns(new ShowRssItem());
            DownloadItemActionError error;

            downloadItemService.Setup(x => x.StartDownload(It.IsAny <DownloadItem>(), out error)).Returns(false);
            var service = new ShowRssFeedConsumerJob(
                logger.Object,
                showRssItemrepository.Object,
                downloadItemService.Object,
                userRepository.Object);

            service.Invoke();
            showRssItemrepository.Verify(x => x.Update(It.IsAny <ShowRssItem>()), Times.Never);
        }