public void Can_Deactivate_Author() { // Arrange var author = _authorManager.GetEntities().FirstOrDefault(); Assert.NotNull(author); Assert.True(author.IsActivated); // Act _authorManager.DeActivate(author.Id); // Assert Assert.True(_authorManager.ProcessResult.Success); Assert.False(_authorManager.ProcessResult.MessageList.Any()); Assert.False(author.IsActivated); }