Beispiel #1
0
        public void AddToCartWhenStoreNotExists()
        {
            StoreShoppingService liorSession = (StoreShoppingService)market.GetStoreShoppingService(ref userService);

            liorSession.MakeGuest();
            Store find = handler.GetStorebyName("newStoreName");

            Assert.IsNull(find);
            MarketAnswer ans = liorSession.AddProductToCart("newStoreName", "ppp", 6);

            Assert.AreEqual((int)StoreEnum.StoreNotExists, ans.Status);
        }
Beispiel #2
0
        public void getStoreByName()
        {
            Store expected = new Store("S1", "X", "Here 4"); // THIS exists in DB by SQL injection
            Store find     = handler.GetStorebyName("X");

            Assert.AreEqual(expected, find);
        }