Ejemplo n.º 1
0
        public async void CheckSignatureGet()
        {
            var factory = new HmacSha1SignatureFactory();
            var actual  = await factory.Get(
                this.GetMessage(),
                this.config,
                "kYjzVBB8Y0ZFabxSWbWovY3uYSQ2pTgmZeNu2VS4cg",
                "1318622958",
                "1.0");

            Assert.Equal("MChed2Nhee5rRVbvne6/Ix8EwpY=", actual);
        }
Ejemplo n.º 2
0
        public async void CheckSignaturePost()
        {
            var factory = new HmacSha1SignatureFactory();
            var actual  = await factory.Get(
                this.PostMessage(),
                this.config,
                "kYjzVBB8Y0ZFabxSWbWovY3uYSQ2pTgmZeNu2VS4cg",
                "1318622958",
                "1.0");

            Assert.Equal("tnnArxj06cWHq44gCs1OSKk/jLY=", actual);
        }