public void Verify_Search_AsListing_Should_ReturnAListOfLocationAppearedInIssuesWithDataMatchingSearchParametersWithListingMapping()
        {
            // Arrange
            var mockLocationAppearedInIssuesRepository = LocationAppearedInIssuesMockingSetup.DoMockingSetupForRepository();
            var searchModel = new Mock <ILocationAppearedInIssueSearchModel>();
            var mockLocationAppearedInIssuesMapper = new Mock <ILocationAppearedInIssueMapper>();

            mockLocationAppearedInIssuesMapper.Setup(m => m.AreEqual(It.IsAny <ILocationAppearedInIssueModel>(), It.IsAny <ILocationAppearedInIssue>())).Returns(() => true);
            var businessWorkflow = new LocationAppearedInIssuesBusinessWorkflow(mockLocationAppearedInIssuesRepository.Object, mockLocationAppearedInIssuesMapper.Object);

            // Act
            businessWorkflow.Search(searchModel.Object, true);
            // Assert
            mockLocationAppearedInIssuesRepository.Verify(m => m.Search(It.IsAny <ILocationAppearedInIssueSearchModel>(), It.IsAny <bool>()), Times.Once);
        }
 public void Verify_Search_Should_ReturnAListOfLocationAppearedInIssues()
 {
     // Arrange
     var mockLocationAppearedInIssuesRepository = LocationAppearedInIssuesMockingSetup.DoMockingSetupForRepository();
     var searchModel = new Mock<ILocationAppearedInIssueSearchModel>();
     var mockLocationAppearedInIssuesMapper = new Mock<ILocationAppearedInIssueMapper>();
     mockLocationAppearedInIssuesMapper.Setup(m => m.AreEqual(It.IsAny<ILocationAppearedInIssueModel>(), It.IsAny<ILocationAppearedInIssue>())).Returns(() => true);
     var businessWorkflow = new LocationAppearedInIssuesBusinessWorkflow(mockLocationAppearedInIssuesRepository.Object, mockLocationAppearedInIssuesMapper.Object);
     // Act
     businessWorkflow.Search(searchModel.Object);
     // Assert
     mockLocationAppearedInIssuesRepository.Verify(m => m.Search(It.IsAny<ILocationAppearedInIssueSearchModel>(), It.IsAny<bool>()), Times.Once);
 }