예제 #1
0
        public void RemoveCategorySuccess()
        {
            DoSignInToAdmin();
            adminServiceSession = (SystemAdminService)marketSession.GetSystemAdminService(userServiceSession);
            MarketAnswer ans = adminServiceSession.RemoveCategory("WanderlandItems");

            Assert.AreEqual((int)EditCategoryStatus.Success, ans.Status);
        }
예제 #2
0
        public void RemoveCategoryWhenCategoryNotExists()
        {
            DoSignInToAdmin();
            adminServiceSession = (SystemAdminService)marketSession.GetSystemAdminService(userServiceSession);
            MarketAnswer ans = adminServiceSession.RemoveCategory("bad item");

            Assert.AreEqual((int)EditCategoryStatus.CategoryNotExistsInSystem, ans.Status);
        }