Пример #1
0
        public void Should_SetActive()
        {
            PrePlanningCountry prePlanningCountry = new PrePlanningCountry(countryId);

            prePlanningCountry.SetActive();
            Assert.True(prePlanningCountry.IsActive);
        }
Пример #2
0
        public void Should_SetAddedState()
        {
            PrePlanningCountry prePlanningCountry = new PrePlanningCountry(countryId);

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

            prePlanningCountry.DeActive();
            Assert.False(prePlanningCountry.IsActive);
        }
Пример #4
0
        public void Should_Update()
        {
            PrePlanningCountry prePlanningCountry = new PrePlanningCountry(countryId);

            prePlanningCountry.Update();
            prePlanningCountry.ShouldNotBeNull();
        }
Пример #5
0
        public void Should_Delete()
        {
            PrePlanningCountry prePlanningCountry = new PrePlanningCountry(countryId);

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

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