public static InvoiceList GetInvoiceList() { List <Invoice> invoices = new List <Invoice> { TestModels.GetInvoice(), TestModels.GetInvoice() }; InvoiceList invoicesList = new InvoiceList { invoices = invoices }; return(invoicesList); }
public void InvoiceObjectTest() { var testObject = TestModels.GetInvoice(); Assert.AreEqual("*****@*****.**", testObject.email); Assert.AreEqual(1, testObject.orderCount); Assert.AreEqual(100.00, testObject.preTaxTotal); Assert.AreEqual(110.00, testObject.postTaxTotal); Assert.AreEqual(10.00, testObject.tax); Assert.IsNotNull(testObject.orders); Assert.IsTrue(testObject.orders.Count == 1); }
public void InvoiceToStringTest() { Assert.IsFalse(TestModels.GetInvoice().ToString().Length == 0); }
public void InvoiceConvertToJsonTest() { Assert.IsFalse(TestModels.GetInvoice().ConvertToJson().Length == 0); }