Beispiel #1
0
        public void ToChurchMembershipIndicator_OtherValues_ReturnsFalse(
            [Values(null, 'w', '2', 'w', 'p')] char?churchStatus)
        {
            var personTotal = new PersonTotalStub()
            {
                ChristianMark = churchStatus
            };
            var result = personTotal.ToChurchMembershipIndicator();

            Assert.False(result);
        }
Beispiel #2
0
        public void ToChurchMembershipIndicator_F_ReturnsTrue(
            [Values('F', 'f')] char?churchStatus)
        {
            var personTotal = new PersonTotalStub()
            {
                ChristianMark = churchStatus
            };
            var result = personTotal.ToChurchMembershipIndicator();

            Assert.True(result);
        }
Beispiel #3
0
        public void ToChurchMembershipIndicator_NonF_ReturnsFalse(
            [Values('A', 'a', 'U', 'u', 'M', 'm', 'S', 's')] char?churchStatus)
        {
            var personTotal = new PersonTotalStub()
            {
                ChristianMark = churchStatus
            };
            var result = personTotal.ToChurchMembershipIndicator();

            Assert.False(result);
        }
        public void ToCprBorgerType_Church_CorrectMembership(
            [Values(null, '1')] char?christianMark)
        {
            var personTotal = new PersonTotalStub()
            {
                ChristianMark = christianMark
            };
            var result = personTotal.ToCprBorgerType(null, null, null);

            Assert.AreEqual(personTotal.ToChurchMembershipIndicator(), result.FolkekirkeMedlemIndikator);
        }