Пример #1
0
        public void Should_SetActive()
        {
            PrePlanningArea prePlanningArea = new PrePlanningArea(areaId);

            prePlanningArea.SetActive();
            Assert.True(prePlanningArea.IsActive);
        }
Пример #2
0
        public void Should_SetAddedState()
        {
            PrePlanningArea prePlanningArea = new PrePlanningArea(areaId);

            prePlanningArea.SetAddedState();
            Assert.Equal(0, prePlanningArea.Id);
        }
Пример #3
0
        public void Should_DeActive()
        {
            PrePlanningArea prePlanningArea = new PrePlanningArea(areaId);

            prePlanningArea.DeActive();
            Assert.False(prePlanningArea.IsActive);
        }
Пример #4
0
        public void Should_Update()
        {
            PrePlanningArea prePlanningArea = new PrePlanningArea(areaId);

            prePlanningArea.Update();
            prePlanningArea.ShouldNotBeNull();
        }
Пример #5
0
        public void Should_Delete()
        {
            PrePlanningArea prePlanningArea = new PrePlanningArea(areaId);

            prePlanningArea.Delete();
            prePlanningArea.State.ShouldBe(ObjectState.Deleted);
        }
Пример #6
0
        public void Should_Construct_PrePlanningArea()
        {
            PrePlanningArea prePlanningArea = new PrePlanningArea(areaId);

            _ = new PrePlanningArea();
            _ = prePlanningArea.Id;
            _ = prePlanningArea.Area;
            _ = prePlanningArea.PrePlanningId;
            _ = prePlanningArea.PrePlanning;
            prePlanningArea.ShouldNotBeNull();
        }