...
If dateStart is not specified it should be
Today if DateEnd is not specified
min (Today, DateEnd ) if DateEnd is specified
Entity.DateValidFrom should be before the DateEnd if DateEnd is not null
Entity.DateValidTo should be after date DateStart if Entity.DateValidTo is not null