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();
     }
 }
示例#2
0
 public void ViewPurchaseHistoryByStoreNoDBTest()
 {
     answer = adminService.ViewPurchaseHistoryByStore("Clunkin Bell");
     Assert.AreEqual((int)ViewPurchaseHistoryStatus.NoDB, answer.Status);
 }
示例#3
0
 public MarketAnswer ViewPurchaseHistoryByStore(string storeName)
 {
     return(_systemAdminService.ViewPurchaseHistoryByStore(storeName));
 }