Ejemplo n.º 1
0
        public void Should_Construct_AnnouncementActivity()
        {
            var activityId = 1;

            var announcementActivity = new AnnouncementActivity(activityId);

            announcementActivity.ShouldNotBeNull();
            announcementActivity.ActivityId.ShouldBe(activityId);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
        public void Should_DeActive_AnnouncementActivity()
        {
            var activityId           = 1;
            var announcementActivity = new AnnouncementActivity(activityId);

            announcementActivity.DeActive();

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