public void LoanAttachment_Serialization() { var loanAttachment = new LoanAttachment { AttachmentType = AttachmentType.Image }; Assert.AreEqual(@"{""attachmentType"":1}", loanAttachment.ToJson()); }
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()); }