public void Verify_Deactivate_Should_SetTheActivePropertyToFalseOnTheEntity()
 {
     // Arrange
     Mock<IDbSet<EpisodeConceptFirstAppearance>> mockSetEpisodeConceptFirstAppearances;
     var mockContext = EpisodeConceptFirstAppearancesMockingSetup.DoMockingSetupForContext(true, out mockSetEpisodeConceptFirstAppearances);
     var repository = new EpisodeConceptFirstAppearancesRepository(mockContext.Object);
     var episodeConceptFirstAppearances = repository.Get(1);
     // Act
     repository.Deactivate(episodeConceptFirstAppearances);
     // Assert
     Assert.Equal(false, episodeConceptFirstAppearances.Active);
 }
Пример #2
0
        public void Verify_Deactivate_Should_SetTheActivePropertyToFalseOnTheEntity()
        {
            // Arrange
            Mock <IDbSet <EpisodeConceptFirstAppearance> > mockSetEpisodeConceptFirstAppearances;
            var mockContext = EpisodeConceptFirstAppearancesMockingSetup.DoMockingSetupForContext(true, out mockSetEpisodeConceptFirstAppearances);
            var repository  = new EpisodeConceptFirstAppearancesRepository(mockContext.Object);
            var episodeConceptFirstAppearances = repository.Get(1);

            // Act
            repository.Deactivate(episodeConceptFirstAppearances);
            // Assert
            Assert.Equal(false, episodeConceptFirstAppearances.Active);
        }