Esempio n. 1
0
        public void AddsJsonPayloadToTheBody()
        {
            var record = new DelegationSignerRecord
            {
                Algorithm  = "superMemo",
                Digest     = "digest",
                DigestType = "type",
                Keytag     = "keytag"
            };

            _builder.AddJsonPayload(record);
            var request = _builder.Request;

            Assert.AreEqual(record,
                            JsonConvert
                            .DeserializeObject <DelegationSignerRecord>(
                                request.Parameters.First().Value.ToString()));
        }