本文整理汇总了C#中Order.CreateReceipt方法的典型用法代码示例。如果您正苦于以下问题:C# Order.CreateReceipt方法的具体用法?C# Order.CreateReceipt怎么用?C# Order.CreateReceipt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Order
的用法示例。
在下文中一共展示了Order.CreateReceipt方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TextReceiptOneDuraAce
public void TextReceiptOneDuraAce()
{
var order = new Order("Anywhere Bike Shop");
order.AddLine(new Line(DuraAce, 1));
Assert.AreEqual(TextResultStatementOneDuraAce, order.CreateReceipt(Receipt.Text));
}
示例2: TextReceiptMultiLine
public void TextReceiptMultiLine()
{
var order = new Order("Rolling Thunder Cycles");
order.AddLine(new Line(Defy, 1));
order.AddLine(new Line(Elite, 1));
Assert.AreEqual(TextResultStatementMultiLine, order.CreateReceipt(Receipt.Text));
}
示例3: TextReceiptTenMadoneSetTaxRate
public void TextReceiptTenMadoneSetTaxRate()
{
// Set custom tax rate
var order = new Order("Rolling Thunder Cycles", 0.1d);
order.AddLine(new Line(Madone, 10));
string temp = order.CreateReceipt(Receipt.Text);
Assert.AreEqual(TextResultStatementTenMadoneCustomTaxRate, order.CreateReceipt(Receipt.Text));
}
示例4: HtmlReceiptOneElite
public void HtmlReceiptOneElite()
{
var order = new Order("Anywhere Bike Shop");
order.AddLine(new Line(Elite, 1));
Assert.AreEqual(HtmlResultStatementOneElite, order.CreateReceipt(Receipt.Html));
}
示例5: TextReceiptTenMadoneDefaultTaxRate
public void TextReceiptTenMadoneDefaultTaxRate()
{
// Use default tax rate
var order = new Order("Rolling Thunder Cycles");
order.AddLine(new Line(Madone, 10));
string temp = order.CreateReceipt(Receipt.Text);
Assert.AreEqual(TextResultStatementTenMadoneDefaultTaxRate, order.CreateReceipt(Receipt.Text));
}