public void GuestBuyItem() { try { storeServiceSession.MakeGuest(); storeServiceSession.AddProductToCart(store, product, 3); orderServiceSession.GiveDetails("Someone", "Somewhere", "12345689"); orderServiceSession.BuyItemFromImmediate(product, store, 3, 11, null); Assert.AreEqual(2, sysadminSession.ViewPurchaseHistoryByStore(store).ReportList.Length); string actual = sysadminSession.ViewPurchaseHistoryByStore(store).ReportList[0]; Assert.AreEqual(PurchaseString("Someone"), actual); } catch (MarketException) { Assert.Fail(); } }
public void ViewPurchaseHistoryByStoreNoDBTest() { answer = adminService.ViewPurchaseHistoryByStore("Clunkin Bell"); Assert.AreEqual((int)ViewPurchaseHistoryStatus.NoDB, answer.Status); }
public MarketAnswer ViewPurchaseHistoryByStore(string storeName) { return(_systemAdminService.ViewPurchaseHistoryByStore(storeName)); }