public void GdprConsentData_IsValid_false() { var data = new GdprConsentData() { AnsweredAt = DateTime.Now, AnswerValidUntil = DateTime.Now.AddHours(-1) }; Assert.AreEqual(false, data.IsValid); }
public void GdprConsentData_AllAccepted_false() { var data = new GdprConsentData() { GdprConsentDetails = new GdprConsentDetail[] { new GdprConsentDetail() { IsAccepted = true }, new GdprConsentDetail() { IsAccepted = true }, new GdprConsentDetail(), } }; Assert.AreEqual(false, new GdprConsentData().AllAccepted); Assert.AreEqual(false, data.AllAccepted); }
public void GdprConsentData_GdprConsentDetails_initialized() { var data = new GdprConsentData(); Assert.IsNotNull(data.GdprConsentDetails); }