public void Verify_Deactivate_Should_SetTheActivePropertyToFalseOnTheEntity()
 {
     // Arrange
     Mock<IDbSet<PowerAlias>> mockSetPowerAliases;
     var mockContext = PowerAliasesMockingSetup.DoMockingSetupForContext(true, out mockSetPowerAliases);
     var repository = new PowerAliasesRepository(mockContext.Object);
     var powerAliases = repository.Get(1);
     // Act
     repository.Deactivate(powerAliases);
     // Assert
     Assert.Equal(false, powerAliases.Active);
 }
Ejemplo n.º 2
0
        public void Verify_Deactivate_Should_SetTheActivePropertyToFalseOnTheEntity()
        {
            // Arrange
            Mock <IDbSet <PowerAlias> > mockSetPowerAliases;
            var mockContext  = PowerAliasesMockingSetup.DoMockingSetupForContext(true, out mockSetPowerAliases);
            var repository   = new PowerAliasesRepository(mockContext.Object);
            var powerAliases = repository.Get(1);

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