示例#1
0
        public void GdprConsentData_IsValid_false()
        {
            var data = new GdprConsentData()
            {
                AnsweredAt       = DateTime.Now,
                AnswerValidUntil = DateTime.Now.AddHours(-1)
            };

            Assert.AreEqual(false, data.IsValid);
        }
示例#2
0
        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);
        }
示例#3
0
        public void GdprConsentData_GdprConsentDetails_initialized()
        {
            var data = new GdprConsentData();

            Assert.IsNotNull(data.GdprConsentDetails);
        }