public void RemoveCategorySuccess() { DoSignInToAdmin(); adminServiceSession = (SystemAdminService)marketSession.GetSystemAdminService(userServiceSession); MarketAnswer ans = adminServiceSession.RemoveCategory("WanderlandItems"); Assert.AreEqual((int)EditCategoryStatus.Success, ans.Status); }
public void RemoveCategoryWhenCategoryNotExists() { DoSignInToAdmin(); adminServiceSession = (SystemAdminService)marketSession.GetSystemAdminService(userServiceSession); MarketAnswer ans = adminServiceSession.RemoveCategory("bad item"); Assert.AreEqual((int)EditCategoryStatus.CategoryNotExistsInSystem, ans.Status); }