public void ValidateSignicatSignatureTest()
        {
            var testxml  = EmbeddedResourceExtractor.GetString <BankIdSeSignatureVerificationTests>("MobileLife.OBCO.DataTests.Signicat.Samples.bankid-se_signicat_sample.xml");
            var verifier = new BankIdSeSignatureVerification(testxml);

            Assert.True(verifier.ValidateSignature(DateTimeOffset.Parse("2017-02-01 02:10:31.296761+00"), true));
            var jsonBase64Payload = verifier.UserNonVisibleData;
            var payload           = new SignicatPayload(jsonBase64Payload);

            Assert.True(payload.ValidateAttachment(0, EmbeddedResourceExtractor.GetStream <BankIdSeSignatureVerificationTests>("MobileLife.OBCO.DataTests.Signicat.Samples.bankid-se_signicat_sample.pdf")));
        }
        public void ValidateSignicatSignatureTest()
        {
            var testxml           = EmbeddedResourceExtractor.GetString <NemidSignatureVerificationTests>("MobileLife.OBCO.DataTests.Signicat.Samples.nemid_signicat_sample.xml");
            var verifier          = new NemidSignatureVerification(testxml);
            var jsonBase64Payload = verifier.SignatureProperties
                                    .Where(p => p.Name == "signicat")
                                    .Select(p => p.Value)
                                    .SingleOrDefault();

            Assert.True(verifier.ValidateSignature(DateTimeOffset.Parse("2016-09-01 02:10:31.296761+00"), true));

            var payload = new SignicatPayload(jsonBase64Payload);

            Assert.True(payload.ValidateAttachment(0, EmbeddedResourceExtractor.GetStream <NemidSignatureVerificationTests>("MobileLife.OBCO.DataTests.Signicat.Samples.nemid_signicat_sample.pdf")));
        }