Ejemplo n.º 1
0
        public void LoanAttachment_Serialization()
        {
            var loanAttachment = new LoanAttachment {
                AttachmentType = AttachmentType.Image
            };

            Assert.AreEqual(@"{""attachmentType"":1}", loanAttachment.ToJson());
        }
Ejemplo n.º 2
0
        public void LoanAttachment_Serialization()
        {
#pragma warning disable CS0618 // Type or member is obsolete
            var loanAttachment = new LoanAttachment {
                AttachmentType = AttachmentType.Image
            };
#pragma warning restore CS0618 // Type or member is obsolete
            Assert.AreEqual(@"{""attachmentType"":1}", loanAttachment.ToJson());
        }