コード例 #1
0
        public void TestBuyItem()
        {
            _repo.Buyitem(new PurchaseHistory()
            {
                Transactionid   = 8,
                TransactionType = "debit",
                DateTime        = System.DateTime.Now,
                SellerId        = 1,
                BuyerId         = 2,
                ItemId          = 11,
                NoOfItems       = 21,
                Remarks         = "good"
            });
            var result = _repo.Transactionshistory(3);

            Assert.NotNull(result);
        }
コード例 #2
0
        public void TestPurchaseHistory()
        {
            var result = _repo.Purchasehistory("4");

            Assert.IsNotNull(result);
            _repo.Buyitem(new PurchaseHistory()
            {
                Phid              = "T125",
                Sid               = "1",
                Bid               = "4",
                Iid               = "2",
                Transactiontype   = "debit",
                Noofitems         = 5,
                Datetime          = DateTime.Now,
                Remarks           = "gud",
                TransactionStatus = "failed"
            });
        }