Esempio n. 1
0
        public void Should_Construct_AnnouncementArea()
        {
            var areaId = 1;

            var announcementArea = new AnnouncementArea(areaId);

            announcementArea.ShouldNotBeNull();
            announcementArea.AreaId.ShouldBe(areaId);
        }
Esempio n. 2
0
        public void Should_Delete_AnnouncementArea()
        {
            var areaId           = 1;
            var announcementArea = new AnnouncementArea(areaId);

            announcementArea.Delete();

            announcementArea.ShouldNotBeNull();
            announcementArea.State.ShouldBe(ObjectState.Deleted);
        }
Esempio n. 3
0
        public void Should_DeActive_AnnouncementArea()
        {
            var areaId           = 1;
            var announcementArea = new AnnouncementArea(areaId);

            announcementArea.DeActive();

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