public void Verify_Search_AsListing_Should_ReturnAListOfMovieStoryArcsWithDataMatchingSearchParametersWithListingMapping()
        {
            // Arrange
            var mockMovieStoryArcsRepository = MovieStoryArcsMockingSetup.DoMockingSetupForRepository();
            var searchModel = new Mock <IMovieStoryArcSearchModel>();
            var mockMovieStoryArcsMapper = new Mock <IMovieStoryArcMapper>();

            mockMovieStoryArcsMapper.Setup(m => m.AreEqual(It.IsAny <IMovieStoryArcModel>(), It.IsAny <IMovieStoryArc>())).Returns(() => true);
            var businessWorkflow = new MovieStoryArcsBusinessWorkflow(mockMovieStoryArcsRepository.Object, mockMovieStoryArcsMapper.Object);

            // Act
            businessWorkflow.Search(searchModel.Object, true);
            // Assert
            mockMovieStoryArcsRepository.Verify(m => m.Search(It.IsAny <IMovieStoryArcSearchModel>(), It.IsAny <bool>()), Times.Once);
        }
 public void Verify_Search_Should_ReturnAListOfMovieStoryArcs()
 {
     // Arrange
     var mockMovieStoryArcsRepository = MovieStoryArcsMockingSetup.DoMockingSetupForRepository();
     var searchModel = new Mock<IMovieStoryArcSearchModel>();
     var mockMovieStoryArcsMapper = new Mock<IMovieStoryArcMapper>();
     mockMovieStoryArcsMapper.Setup(m => m.AreEqual(It.IsAny<IMovieStoryArcModel>(), It.IsAny<IMovieStoryArc>())).Returns(() => true);
     var businessWorkflow = new MovieStoryArcsBusinessWorkflow(mockMovieStoryArcsRepository.Object, mockMovieStoryArcsMapper.Object);
     // Act
     businessWorkflow.Search(searchModel.Object);
     // Assert
     mockMovieStoryArcsRepository.Verify(m => m.Search(It.IsAny<IMovieStoryArcSearchModel>(), It.IsAny<bool>()), Times.Once);
 }