public void Buyitem() { _repo.BuyItem(new PurchaseHistory() { Id = "45", Bid = "1", Sid = "1", Transactiontype = "cashondelivery", Iid = "I078", Datetime = System.DateTime.Now, Remarks = "none" }); }
public void TestBuyItem() { rep.BuyItem(new PurchaseHistory() { PurchaseId = 2, TranscationType = "cash", TranscationTime = DateTime.Now, NoOfItems = 2, Remarks = "good", Transcationstatus = "success", BuyerId = 6, SellerId = 3, ItemId = 217 }); }
public void TestBuyItem() { _repo.BuyItem(new PurchaseHistory() { Id = 678, Bid = 586, Sid = 1, Transactiontype = "Debit", Itemid = 678957, Noofitems = 3, Datetime = System.DateTime.Now, Remarks = "Nothing" }); var result = _repo.GetCartItems(586); Assert.NotNull(result); }
public void TestBuyItem() { _repo.BuyItem(new PurchaseHistory() { Id = "TID09", ItemId = "I002", BuyerId = "B001", SellerId = "S001", NumberOfItems = "1", DateTime = DateTime.Now, Remarks = "Nothing", TransactionType = "Debit" }); var result = _repo.GetPurchaseHistory("TID09"); Assert.IsNotNull(result); }
public void TestBuyItem() { _buyrepo.BuyItem(new Transactionhistory() { BuyerId = "1", SellerId = "1", TransactionId = "456", ItemId = "I660", NumberOfItems = "2", DateTime = DateTime.Now, TransactionType = "Credit Card" } ); var result = _buyrepo.TransactionHistory("1"); Assert.IsNotNull(result); }
public void BuyItem() { _repo.BuyItem(new TransactionHistory() { Id = "T21", BuyerId = "1", SellerId = "1", TransactionId = "T21", ItemId = "4", NumberOfItems = "6", DateTime = DateTime.Now, Remarks = "Good", TransactionType = "Debit" }); var result = _repo.TransactionHistory("1"); Assert.IsNotNull(result); }
public void TestBuyItem() { _repo.BuyItem(new TransactionHistory() { Id = "T002", BuyerId = "B0010", SellerId = "S0010", TransactionId = "T002", ItemId = "I443", NumberOfItems = "4", DateTime = DateTime.Now, Remarks = "", TransactionType = "debit" } ); var result = _repo.TransactionHistory("B0010"); Assert.IsNotNull(result); }