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()); }
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()); }