Пример #1
0
            public void ToPersonFlerRelationType_InvalidPnr_Empty(
                [Values(null, "1234")] string pnr)
            {
                var ret = DisempowermentType.ToPersonRelationType(new DisempowermentType()
                {
                    PNR = pnr
                }, cpr => Guid.NewGuid());

                Assert.AreEqual(0, ret.Length);
            }
Пример #2
0
            public void ToPersonFlerRelationType_Pnr_OneItem(
                [Values("123456789", "1234567890")] string pnr)
            {
                var ret = DisempowermentType.ToPersonRelationType(new DisempowermentType()
                {
                    RelationPNR = pnr
                }, cpr => Guid.NewGuid());

                Assert.AreEqual(1, ret.Length);
            }
Пример #3
0
            public void ToPersonFlerRelationType_Null_Empty()
            {
                var ret = DisempowermentType.ToPersonRelationType(null, pnr => Guid.NewGuid());

                Assert.AreEqual(0, ret.Length);
            }