本文整理汇总了C#中Order.HtmlReceipt方法的典型用法代码示例。如果您正苦于以下问题:C# Order.HtmlReceipt方法的具体用法?C# Order.HtmlReceipt怎么用?C# Order.HtmlReceipt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Order
的用法示例。
在下文中一共展示了Order.HtmlReceipt方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: HtmlReceiptOneDefy
public void HtmlReceiptOneDefy()
{
string HtmlResultStatementOneDefy = @"<html><body><h1>Order Receipt for Anywhere Bike Shop</h1><ul><li>1 x Giant Defy 1 = $1,000.00</li></ul><h3>Sub-Total: $1,000.00</h3><h3>Tax: $72.50</h3><h2>Total: $1,072.50</h2></body></html>";
var order = new Order("Anywhere Bike Shop");
order.AddLine(new Line(Data.Bikes.Defy, 1));
Assert.AreEqual(HtmlResultStatementOneDefy, order.HtmlReceipt().Replace(Environment.NewLine, ""));
}
示例2: HtmlReceiptOneElite
public void HtmlReceiptOneElite()
{
string HtmlResultStatementOneElite = @"<html><body><h1>Order Receipt for Anywhere Bike Shop</h1><ul><li>1 x Specialized Venge Elite = $2,000.00</li></ul><h3>Sub-Total: $2,000.00</h3><h3>Tax: $145.00</h3><h2>Total: $2,145.00</h2></body></html>";
var order = new Order("Anywhere Bike Shop");
order.AddLine(new Line(Data.Bikes.Elite, 1));
Assert.AreEqual(HtmlResultStatementOneElite, order.HtmlReceipt().Replace(Environment.NewLine, ""));
}
示例3: HtmlReceiptOneElite
public void HtmlReceiptOneElite()
{
var order = new Order("Anywhere Bike Shop");
order.AddLine(new Line(Elite, 1));
Assert.AreEqual(HtmlResultStatementOneElite, order.HtmlReceipt());
}