private void User1MakeOrder() { _orderBridge = OrderDriver.getBridge(); _orderBridge.GetOrderService(_userBridge.GetUserSession()); _orderBridge.BuyItemFromImmediate("hello", "blahblah", 2, 10, null); _orderBridge.BuyItemFromImmediate("Goodbye", "blahblah2", 2, 10, null); }
private void CreateOrder() { _storeManager1.AddNewProduct("Yolo", 5, "Once", 10); _storeBridge.AddProductToCart("Volcano", "Yolo", 2); _orderBridge = OrderDriver.getBridge(); _orderBridge.GetOrderService(_bridgeSignUp.GetUserSession()); _orderBridge.BuyEverythingFromCart(new string[] { null }); }
private void MakeRegisteredShopper3() { _buyerRegisteredUserBridge3 = UserDriver.getBridge(); _buyerRegisteredUserBridge3.EnterSystem(); _buyerRegisteredUserBridge3.SignUp("Shalom3", "Bye3", "555", "55555555"); _orderBridge3 = OrderDriver.getBridge(); _orderBridge3.GetOrderService(_buyerRegisteredUserBridge3.GetUserSession()); }
public void LotteryFailGuest() { _buyerGuestBridge = UserDriver.getBridge(); _buyerGuestBridge.EnterSystem(); _orderBridge1 = OrderDriver.getBridge(); _orderBridge1.GetOrderService(_buyerGuestBridge.GetUserSession()); Assert.AreEqual((int)OrderStatus.InvalidUser, _orderBridge1.BuyLotteryTicket("Fanta", storeName, 1, 4).Status); }
private void CreateOrderWithCouponInvalidCoupon(string coupon) { _orderBridge = OrderDriver.getBridge(); _orderBridge.GetOrderService(_userBuyer.GetUserSession()); MarketAnswer res = _orderBridge.BuyItemFromImmediate("Ouch", "Toy", 2, 30, coupon); Assert.AreEqual((int)OrderStatus.InvalidCoupon, res.Status); }
public void MarketBuilder() { MarketDB.Instance.InsertByForce(); SignUp("Pnina", "mishol", "666", "66666666"); OpenStoreAndAddProducts(); _orderBridge = OrderDriver.getBridge(); _userAdminBridge = UserDriver.getBridge(); _userAdminBridge.EnterSystem(); MarketAnswer res = _userAdminBridge.SignIn("Arik1", "123"); _adminBridge = AdminDriver.getBridge(); _adminBridge.GetAdminService(_userAdminBridge.GetUserSession()); _buyerRegisteredUserBridge = null; _buyerGuestBridge = null; PaymentService.Instance.FixExternal(); SupplyService.Instance.FixExternal(); }
private void CreateOrder() { _orderBridge = OrderDriver.getBridge(); _orderBridge.GetOrderService(_userBuyer.GetUserSession()); _orderBridge.BuyEverythingFromCart(new string[] { null }); }