Beispiel #1
0
 public void IncreaseCartItemGuestTest()
 {
     AddAllItems(userServiceGuestSession);
     Assert.AreEqual((int)EditCartItemStatus.Success, userServiceGuestSession.EditCartItem("X", "Health Potion", 3, 5.0).Status);
     item1.ChangeQuantity(3);
     Assert.AreEqual(item1, userServiceGuestSession.MarketUser.Cart.SearchInCart("X", "Health Potion", 5.0));
 }
Beispiel #2
0
 public void DecreaseCartItemGuestTest()
 {
     AddAllItems(userServiceGuestSession);
     Assert.AreEqual((int)EditCartItemStatus.Success, userServiceGuestSession.EditCartItem("Y", "Health Potion", -1, 0.5).Status);
     item2.ChangeQuantity(-1);
     Assert.AreEqual(item2, userServiceGuestSession.MarketUser.Cart.SearchInCart("Y", "Health Potion", 0.5));
 }