public void Verify_Deactivate_Should_SetTheActivePropertyToFalseOnTheEntity()
 {
     // Arrange
     Mock<IDbSet<CharacterDiedInIssue>> mockSetCharacterDiedInIssues;
     var mockContext = CharacterDiedInIssuesMockingSetup.DoMockingSetupForContext(true, out mockSetCharacterDiedInIssues);
     var repository = new CharacterDiedInIssuesRepository(mockContext.Object);
     var characterDiedInIssues = repository.Get(1);
     // Act
     repository.Deactivate(characterDiedInIssues);
     // Assert
     Assert.Equal(false, characterDiedInIssues.Active);
 }
Exemplo n.º 2
0
        public void Verify_Deactivate_Should_SetTheActivePropertyToFalseOnTheEntity()
        {
            // Arrange
            Mock <IDbSet <CharacterDiedInIssue> > mockSetCharacterDiedInIssues;
            var mockContext           = CharacterDiedInIssuesMockingSetup.DoMockingSetupForContext(true, out mockSetCharacterDiedInIssues);
            var repository            = new CharacterDiedInIssuesRepository(mockContext.Object);
            var characterDiedInIssues = repository.Get(1);

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