public void Verify_MapToSearchModelExtension_CallsMapToModel()
        {
            // Arrange
            var mockMapper = new Mock <EpisodeMapper>();

            mockMapper.Setup(x => x.MapToSearchModel(It.IsAny <IEpisodeModel>()));
            var mockModel = EpisodesMockingSetup.DoMockingSetupForEpisodeModel(1);

            EpisodeMapperExtensions.OverrideMapper(mockMapper.Object);
            // Act
            mockModel.Object.MapToSearchModel();
            // Assert
            mockMapper.Verify(x => x.MapToSearchModel(It.IsAny <IEpisodeModel>()), Times.Once);
        }
        public void Verify_MapToModelListingExtension_CallsMapToModel()
        {
            // Arrange
            var mockMapper = new Mock <EpisodeMapper>();

            mockMapper.Setup(x => x.MapToModelListing(It.IsAny <IEpisode>(), It.IsAny <int>()));
            var mockEntity = EpisodesMockingSetup.DoMockingSetupForEpisode(1);

            EpisodeMapperExtensions.OverrideMapper(mockMapper.Object);
            // Act
            mockEntity.Object.MapToModelListing();
            // Assert
            mockMapper.Verify(x => x.MapToModelListing(It.IsAny <IEpisode>(), It.IsAny <int>()), Times.Once);
        }
        public void Verify_AreEqualExtension_CallsAreEqual()
        {
            // Arrange
            var mockMapper = new Mock <EpisodeMapper>();

            mockMapper.Setup(x => x.AreEqual(It.IsAny <IEpisodeModel>(), It.IsAny <IEpisode>()));
            EpisodeMapperExtensions.OverrideMapper(mockMapper.Object);
            var mockModel  = EpisodesMockingSetup.DoMockingSetupForEpisodeModel(1);
            var mockEntity = EpisodesMockingSetup.DoMockingSetupForEpisode(1);

            // Act
            mockModel.Object.AreEqual(mockEntity.Object);
            // Assert
            mockMapper.Verify(x => x.AreEqual(It.IsAny <IEpisodeModel>(), It.IsAny <IEpisode>()), Times.Once);
        }