Exemplo n.º 1
0
        public void ToDirectoryProtectionIndicator_1_True()
        {
            var personTotal = new PersonTotalStub()
            {
                DirectoryProtectionMarker = '1'
            };
            var result = personTotal.ToDirectoryProtectionIndicator();

            Assert.True(result);
        }
Exemplo n.º 2
0
        public void ToDirectoryProtectionIndicator_OtherValues_False(
            [Values(null, '2', '0', 'w', 'A')] char?protectionIndicator)
        {
            var personTotal = new PersonTotalStub()
            {
                DirectoryProtectionMarker = protectionIndicator
            };
            var result = personTotal.ToDirectoryProtectionIndicator();

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

            Assert.AreEqual(personTotal.ToDirectoryProtectionIndicator(), result.ForskerBeskyttelseIndikator);
        }