Exemple #1
0
        public void ViewStoreStockWhenHasNoPremmision()
        {
            StoreShoppingService liorSession = (StoreShoppingService)market.GetStoreShoppingService(ref userService);
            MarketAnswer         ans         = liorSession.ViewStoreStock("X");

            Assert.AreEqual((int)StoreEnum.NoPermission, ans.Status);
        }
Exemple #2
0
        public void ViewStoreStockBadInputFail()
        {
            StoreShoppingService liorSession = (StoreShoppingService)market.GetStoreShoppingService(ref userService);

            liorSession.LoginShoper("Arik3", "123");
            MarketAnswer ans = liorSession.ViewStoreStock("X'");

            Assert.AreEqual((int)StoreEnum.BadInput, ans.Status);
        }
Exemple #3
0
        public void ViewStoreStockWhenStoreNotExists()
        {
            StoreShoppingService liorSession = (StoreShoppingService)market.GetStoreShoppingService(ref userService);

            liorSession.LoginShoper("Arik3", "123");
            MarketAnswer ans = liorSession.ViewStoreStock("STORE_NOT_EXISTS");

            Assert.AreEqual((int)StoreEnum.StoreNotExists, ans.Status);
        }