public void ViewStoreStockWhenHasNoPremmision() { StoreShoppingService liorSession = (StoreShoppingService)market.GetStoreShoppingService(ref userService); MarketAnswer ans = liorSession.ViewStoreStock("X"); Assert.AreEqual((int)StoreEnum.NoPermission, ans.Status); }
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); }
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); }