示例#1
0
        public void TestBad()
        {
            VIESResponse response1 = VIESChecker.Check(Bad);

            Assert.IsFalse(response1.Valid);

            VIESResponse response2 = VIESChecker.Check(Bad, Pepsico);

            Assert.IsFalse(response2.Valid);
        }
示例#2
0
        public void TestIntersnack()
        {
            VIESResponse response1 = VIESChecker.Check(CocaCola);

            Assert.IsTrue(response1.Valid);

            VIESResponse response2 = VIESChecker.Check(CocaCola, Pepsico);

            Assert.IsTrue(response2.Valid);
            Assert.IsFalse(string.IsNullOrEmpty(response2.RequestIdentifier));
        }