public void Test_Failed_State_Draft_And_Publish_And_Publish() { TestCandidate candidate = new TestCandidate(); candidate.Publish(); candidate.Publish(); }
public void Test_StatusOn_Create_And_Publish() { TestCandidate candidate = new TestCandidate(); candidate.Publish(); AssertActiveState(candidate); }
public void Test_StatusOn_Create_And_Publish_And_Delete() { TestCandidate candidate = new TestCandidate(); candidate.Publish(); candidate.SoftDelete(); AssertDeletedState(candidate); }
public void Test_StatusOn_Create_And_Publish_And_Archive() { TestCandidate candidate = new TestCandidate(); candidate.Publish(); candidate.Archive(); AssertArchivedState(candidate); }
public void Test_Object_After_Activate() { TestCandidate candidate = new TestCandidate(); candidate.Publish(); // Assert.IsNull(candidate.PublishedBy); Assert.IsNotNull(candidate.PublishedOn); }
public void Test_Failed_State_Draft_And_Publish_And_Archive_And_Activate_AndActivate() { TestCandidate candidate = new TestCandidate(); candidate.Publish(); candidate.Archive(); candidate.Activate(); candidate.Activate(); }