@Test public void testToAttachment() { Attachment attachment = card.toAttachment(); Assert.assertNotNull(attachment); Assert.assertEquals("application/vnd.microsoft.card.receipt", attachment.getContentType()); }
public Attachment toAttachment() { return new Attachment() { { setContent(ReceiptCard.this); setContentType(CONTENTTYPE); } }; }
ReceiptCard { public Attachment toAttachment() { return new Attachment() { { setContent(ReceiptCard.this); setContentType(CONTENTTYPE); } }; } }
ReceiptCard { public Attachment toAttachment() { return new Attachment() { { setContent(ReceiptCard.this); setContentType(CONTENTTYPE); } }; }  }
ReceiptCard { public Attachment toAttachment() { return new Attachment() { { setContent(ReceiptCard.this); setContentType(CONTENTTYPE); } }; }  String getTitle(); void setTitle(String withTitle); List<Fact> getFacts(); void setFacts(List<Fact> withFacts); List<ReceiptItem> getItems(); void setItems(List<ReceiptItem> withItems); CardAction getTap(); void setTap(CardAction withTap); String getTotal(); void setTotal(String withTotal); String geTax(); void setTax(String withTax); String getVat(); void setVat(String withVat); List<CardAction> getButtons(); void setButtons(List<CardAction> withButtons); Attachment toAttachment(); }
ReceiptCard { public Attachment toAttachment() { return new Attachment() { { setContent(ReceiptCard.this); setContentType(CONTENTTYPE); } }; }  String getTitle(); void setTitle(String withTitle); List<Fact> getFacts(); void setFacts(List<Fact> withFacts); List<ReceiptItem> getItems(); void setItems(List<ReceiptItem> withItems); CardAction getTap(); void setTap(CardAction withTap); String getTotal(); void setTotal(String withTotal); String geTax(); void setTax(String withTax); String getVat(); void setVat(String withVat); List<CardAction> getButtons(); void setButtons(List<CardAction> withButtons); Attachment toAttachment(); @JsonIgnore
    static final String CONTENTTYPE; }