public void Verify_Deactivate_Should_SetTheActivePropertyToFalseOnTheEntity()
 {
     // Arrange
     Mock<IDbSet<Series>> mockSetSeries;
     var mockContext = SeriesMockingSetup.DoMockingSetupForContext(true, out mockSetSeries);
     var repository = new SeriesRepository(mockContext.Object);
     var series = repository.Get(1);
     // Act
     repository.Deactivate(series);
     // Assert
     Assert.Equal(false, series.Active);
 }
예제 #2
0
        public void Verify_Deactivate_Should_SetTheActivePropertyToFalseOnTheEntity()
        {
            // Arrange
            Mock <IDbSet <Series> > mockSetSeries;
            var mockContext = SeriesMockingSetup.DoMockingSetupForContext(true, out mockSetSeries);
            var repository  = new SeriesRepository(mockContext.Object);
            var series      = repository.Get(1);

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