Ejemplo n.º 1
0
        public void Should_SetActive()
        {
            PrePlanningCountry prePlanningCountry = new PrePlanningCountry(countryId);

            prePlanningCountry.SetActive();
            Assert.True(prePlanningCountry.IsActive);
        }
Ejemplo n.º 2
0
        public void Should_SetAddedState()
        {
            PrePlanningCountry prePlanningCountry = new PrePlanningCountry(countryId);

            prePlanningCountry.SetAddedState();
            Assert.Equal(0, prePlanningCountry.Id);
        }
Ejemplo n.º 3
0
        public void Should_DeActive()
        {
            PrePlanningCountry prePlanningCountry = new PrePlanningCountry(countryId);

            prePlanningCountry.DeActive();
            Assert.False(prePlanningCountry.IsActive);
        }
Ejemplo n.º 4
0
        public void Should_Update()
        {
            PrePlanningCountry prePlanningCountry = new PrePlanningCountry(countryId);

            prePlanningCountry.Update();
            prePlanningCountry.ShouldNotBeNull();
        }
Ejemplo n.º 5
0
        public void Should_Delete()
        {
            PrePlanningCountry prePlanningCountry = new PrePlanningCountry(countryId);

            prePlanningCountry.Delete();
            prePlanningCountry.State.ShouldBe(ObjectState.Deleted);
        }
Ejemplo n.º 6
0
        public void Should_Construct_PrePlanningArea()
        {
            PrePlanningCountry prePlanningCountry = new PrePlanningCountry(countryId);

            _ = new PrePlanningCountry();
            _ = prePlanningCountry.Id;
            _ = prePlanningCountry.Country;
            _ = prePlanningCountry.PrePlanningId;
            _ = prePlanningCountry.PrePlanning;
            prePlanningCountry.ShouldNotBeNull();
        }