コード例 #1
0
        public void Should_Construct_AnnouncementActivity()
        {
            var activityId = 1;

            var announcementActivity = new AnnouncementActivity(activityId);

            announcementActivity.ShouldNotBeNull();
            announcementActivity.ActivityId.ShouldBe(activityId);
        }
コード例 #2
0
        public void Should_Delete_AnnouncementActivity()
        {
            var activityId           = 1;
            var announcementActivity = new AnnouncementActivity(activityId);

            announcementActivity.Test_Delete();

            announcementActivity.ShouldNotBeNull();
            announcementActivity.State.ShouldBe(ObjectState.Deleted);
        }
コード例 #3
0
        public void Should_DeActive_AnnouncementActivity()
        {
            var activityId           = 1;
            var announcementActivity = new AnnouncementActivity(activityId);

            announcementActivity.DeActive();

            announcementActivity.ShouldNotBeNull();
            announcementActivity.IsActive.ShouldBe(false);
        }