public void TestGetListBillByUserID_Pass(int id) { BillBL billbl = new BillBL(); //pass Assert.NotEmpty(billbl.GetListBillByUserID(id)); }
void DisplayHistoryTrade() { Console.Clear(); Console.WriteLine("=== History Trade ==="); List <Bill> listBill = BillBl.GetListBillByUserID(userOnline.User_ID); Console.WriteLine("BillID" + new string(' ', 4) + "Application" + new string(' ', 19) + "Price" + new string(' ', 7) + "Date"); foreach (var x in listBill) { string print = x.Bill_ID + new string(' ', 10 - x.Bill_ID.ToString().Length) + x.App.Name + new string(' ', 30 - x.App.Name.ToString().Length) + x.UnitPrice + new string(' ', 12 - x.UnitPrice.ToString().Length) + x.DateCreate.Day + "/" + x.DateCreate.Month + "/" + x.DateCreate.Year; Console.WriteLine(print); } Console.Write("\nPress anykey to return ..."); Console.ReadKey(); }
public void TestGetListBillByUserID_Fail(int id) { BillBL billbl = new BillBL(); Assert.Empty(billbl.GetListBillByUserID(id)); }