Exemplo n.º 1
0
            public void ToPersonFlerRelationType_EndDate_NullStartDate()
            {
                var disemp = new DisempowermentType()
                {
                    DisempowermentEndDate = DateTime.Today
                };
                var ret = disemp.ToPersonFlerRelationType(pnr => Guid.NewGuid());

                Assert.Null(ret.Virkning.FraTidspunkt.ToDateTime());
            }
Exemplo n.º 2
0
            public void ToPersonFlerRelationType_EndDateDate_CorrectEndDate()
            {
                var disemp = new DisempowermentType()
                {
                    DisempowermentEndDate = DateTime.Today
                };
                var ret = disemp.ToPersonFlerRelationType(pnr => Guid.NewGuid());

                Assert.AreEqual(DateTime.Today, ret.Virkning.TilTidspunkt.ToDateTime());
            }