Exemplo n.º 1
0
        public void ToCivilStatusCodeType_OtherValues_ThrowsException(
            [Values(null, '1', 'q', 'A', 'T', 'w')] char?maritalStatus,
            [Values(true, false)] bool hasSeparation)
        {
            var personTotal = new PersonTotalStub()
            {
                MaritalStatus = maritalStatus
            };

            personTotal.ToCivilStatusCodeType(CreateSeparation(hasSeparation));
        }
Exemplo n.º 2
0
        public void ToCivilStatusCodeType_P_NoSeparation_RegPartner(
            [Values('p', 'P')] char maritalStatus)
        {
            var personTotal = new PersonTotalStub()
            {
                MaritalStatus = maritalStatus
            };
            var result = personTotal.ToCivilStatusCodeType(null);

            Assert.AreEqual(CivilStatusKodeType.RegistreretPartner, result);
        }
Exemplo n.º 3
0
        public void ToCivilStatusCodeType_G_NoSeparation_Married(
            [Values('g', 'G')] char maritalStatus)
        {
            var personTotal = new PersonTotalStub()
            {
                MaritalStatus = maritalStatus
            };
            var result = personTotal.ToCivilStatusCodeType(null);

            Assert.AreEqual(CivilStatusKodeType.Gift, result);
        }
Exemplo n.º 4
0
        public void ToCivilStatusCodeType_D_DeadIsNotMarried(
            [Values('d', 'D')] char maritalStatus,
            [Values(true, false)] bool hasSeparation)
        {
            var personTotal = new PersonTotalStub()
            {
                MaritalStatus = maritalStatus
            };
            var result = personTotal.ToCivilStatusCodeType(CreateSeparation(hasSeparation));

            Assert.AreEqual(CivilStatusKodeType.Ugift, result);
        }
Exemplo n.º 5
0
        public void ToCivilStatusCodeType_L_LongestLivingPartner(
            [Values('l', 'L')] char maritalStatus,
            [Values(true, false)] bool hasSeparation)
        {
            var personTotal = new PersonTotalStub()
            {
                MaritalStatus = maritalStatus
            };
            var result = personTotal.ToCivilStatusCodeType(CreateSeparation(hasSeparation));

            Assert.AreEqual(CivilStatusKodeType.Laengstlevende, result);
        }
Exemplo n.º 6
0
        public void ToCivilStatusCodeType_U_AbolitionOfRegisteredPartnership(
            [Values('o', 'O')] char maritalStatus,
            [Values(true, false)] bool hasSeparation)
        {
            var personTotal = new PersonTotalStub()
            {
                MaritalStatus = maritalStatus
            };
            var result = personTotal.ToCivilStatusCodeType(CreateSeparation(hasSeparation));

            Assert.AreEqual(CivilStatusKodeType.OphaevetPartnerskab, result);
        }
Exemplo n.º 7
0
        public void ToCivilStatusCodeType_E_Widow(
            [Values('e', 'E')] char maritalStatus,
            [Values(true, false)] bool hasSeparation)
        {
            var personTotal = new PersonTotalStub()
            {
                MaritalStatus = maritalStatus
            };
            var result = personTotal.ToCivilStatusCodeType(CreateSeparation(hasSeparation));

            Assert.AreEqual(CivilStatusKodeType.Enke, result);
        }
Exemplo n.º 8
0
        public void ToCivilStatusCodeType_F_Divorced(
            [Values('f', 'F')] char maritalStatus,
            [Values(true, false)] bool hasSeparation)
        {
            var personTotal = new PersonTotalStub()
            {
                MaritalStatus = maritalStatus
            };
            var result = personTotal.ToCivilStatusCodeType(CreateSeparation(hasSeparation));

            Assert.AreEqual(CivilStatusKodeType.Skilt, result);
        }
Exemplo n.º 9
0
        public void ToCivilStatusCodeType_P_ActiveSeparation_RegPartner(
            [Values('p', 'P')] char maritalStatus)
        {
            var personTotal = new PersonTotalStub()
            {
                MaritalStatus = maritalStatus
            };
            var separation = new Separation()
            {
                EndDate = null
            };
            var result = personTotal.ToCivilStatusCodeType(separation);

            Assert.AreEqual(CivilStatusKodeType.Separeret, result);
        }
Exemplo n.º 10
0
        public void ToCivilStatusCodeType_G_InActiveSeparation_Married(
            [Values('g', 'G')] char maritalStatus)
        {
            var personTotal = new PersonTotalStub()
            {
                MaritalStatus = maritalStatus
            };
            var separation = new Separation()
            {
                EndDate = DateTime.Today
            };
            var result = personTotal.ToCivilStatusCodeType(separation);

            Assert.AreEqual(CivilStatusKodeType.Gift, result);
        }