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

            var announcementArea = new AnnouncementArea(areaId);

            announcementArea.ShouldNotBeNull();
            announcementArea.AreaId.ShouldBe(areaId);
        }
Exemplo 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);
        }
Exemplo n.º 3
0
        public void Should_DeActive_AnnouncementArea()
        {
            var areaId           = 1;
            var announcementArea = new AnnouncementArea(areaId);

            announcementArea.DeActive();

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