コード例 #1
0
        public void Test_Failed_State_Draft_And_Publish_And_Publish()
        {
            TestCandidate candidate = new TestCandidate();

            candidate.Publish();
            candidate.Publish();
        }
コード例 #2
0
        public void Test_StatusOn_Create_And_Publish()
        {
            TestCandidate candidate = new TestCandidate();

            candidate.Publish();

            AssertActiveState(candidate);
        }
コード例 #3
0
        public void Test_StatusOn_Create_And_Publish_And_Delete()
        {
            TestCandidate candidate = new TestCandidate();

            candidate.Publish();
            candidate.SoftDelete();

            AssertDeletedState(candidate);
        }
コード例 #4
0
        public void Test_StatusOn_Create_And_Publish_And_Archive()
        {
            TestCandidate candidate = new TestCandidate();

            candidate.Publish();
            candidate.Archive();

            AssertArchivedState(candidate);
        }
コード例 #5
0
        public void Test_Object_After_Activate()
        {
            TestCandidate candidate = new TestCandidate();

            candidate.Publish();

//          Assert.IsNull(candidate.PublishedBy);
            Assert.IsNotNull(candidate.PublishedOn);
        }
コード例 #6
0
        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();
        }