Exemplo n.º 1
0
        public void Should_SetActive()
        {
            PrePlanningProjectType prePlanningProjectType = new PrePlanningProjectType(projectTypeId);

            prePlanningProjectType.SetActive();
            Assert.True(prePlanningProjectType.IsActive);
        }
Exemplo n.º 2
0
        public void Should_SetAddedState()
        {
            PrePlanningProjectType prePlanningProjectType = new PrePlanningProjectType(projectTypeId);

            prePlanningProjectType.SetAddedState();
            Assert.Equal(0, prePlanningProjectType.Id);
        }
Exemplo n.º 3
0
        public void Should_DeActive()
        {
            PrePlanningProjectType prePlanningProjectType = new PrePlanningProjectType(projectTypeId);

            prePlanningProjectType.DeActive();
            Assert.False(prePlanningProjectType.IsActive);
        }
Exemplo n.º 4
0
        public void Should_Update()
        {
            PrePlanningProjectType prePlanningProjectType = new PrePlanningProjectType(projectTypeId);

            prePlanningProjectType.Update();
            prePlanningProjectType.ShouldNotBeNull();
        }
Exemplo n.º 5
0
        public void Should_Delete()
        {
            PrePlanningProjectType prePlanningProjectType = new PrePlanningProjectType(projectTypeId);

            prePlanningProjectType.Delete();
            prePlanningProjectType.State.ShouldBe(ObjectState.Deleted);
        }
Exemplo n.º 6
0
        public void Should_Construct_PrePlanningProjectType()
        {
            PrePlanningProjectType prePlanningProjectType = new PrePlanningProjectType(projectTypeId);

            _ = new PrePlanningProjectType();
            _ = prePlanningProjectType.Id;
            _ = prePlanningProjectType.Activity;
            _ = prePlanningProjectType.PrePlanningId;
            _ = prePlanningProjectType.PrePlanning;
            prePlanningProjectType.ShouldNotBeNull();
        }