public void ViewPoliciesTest1() { DoSignInToAdmin(); adminServiceSession = (SystemAdminService)marketSession.GetSystemAdminService(userServiceSession); MarketAnswer ans = adminServiceSession.ViewPolicies(); Assert.AreEqual((int)ViewPolicyStatus.Success, ans.Status); Assert.AreEqual(1, ans.ReportList.Length); }
public void RemovePolicy1() { DoSignInToAdmin(); adminServiceSession = (SystemAdminService)marketSession.GetSystemAdminService(userServiceSession); AddGlobalPolicy(); AddProductPolicy(); MarketAnswer ans = adminServiceSession.RemovePolicy("Global", null); Assert.AreEqual((int)EditPolicyStatus.Success, ans.Status); ans = adminServiceSession.ViewPolicies(); Assert.AreEqual(2, ans.ReportList.Length); }