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

            Assert.AreEqual((int)StoreEnum.NoPermission, ans.Status);
        }
示例#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);
        }
示例#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);
        }