public static bool equalAccessRulesCapabilities(AccessRulesServiceCapabilities fromGetServiceCapabilities, AccessRulesServiceCapabilities fromGetServices, StringBuilder logger) { bool flag = true; const string msgHeader = "Value of '{0}' field is inconsistent. GetServiceCapabilities: '{1}'. GetServices: '{2}'"; if (fromGetServiceCapabilities.MaxLimit != fromGetServices.MaxLimit) { flag = false; logger.AppendLine(string.Format(msgHeader, "MaxLimit", fromGetServiceCapabilities.MaxLimit, fromGetServices.MaxLimit)); } if (fromGetServiceCapabilities.MaxAccessProfiles != fromGetServices.MaxAccessProfiles) { flag = false; logger.AppendLine(string.Format(msgHeader, "MaxAccessProfiles", fromGetServiceCapabilities.MaxAccessProfiles, fromGetServices.MaxAccessProfiles)); } if (fromGetServiceCapabilities.MaxAccessPoliciesPerAccessProfile != fromGetServices.MaxAccessPoliciesPerAccessProfile) { flag = false; logger.AppendLine(string.Format(msgHeader, "MaxAccessPoliciesPerAccessProfile", fromGetServiceCapabilities.MaxAccessPoliciesPerAccessProfile, fromGetServices.MaxAccessPoliciesPerAccessProfile)); } if (fromGetServiceCapabilities.MultipleSchedulesPerAccessPointSupported != fromGetServices.MultipleSchedulesPerAccessPointSupported) { flag = false; logger.AppendLine(string.Format(msgHeader, "MultipleSchedulesPerAccessPointSupported", fromGetServiceCapabilities.MultipleSchedulesPerAccessPointSupported, fromGetServices.MultipleSchedulesPerAccessPointSupported)); } return(flag); }
protected AccessRulesServiceCapabilities GetAccessRulesServiceCapabilities() { AccessRulesServiceCapabilities response = null; RunStep(() => { response = AccessRulesClient.GetServiceCapabilities(); }, "Get Access Rules service capabilities"); DoRequestDelay(); return(response); }
public static AccessRulesServiceCapabilities GetServiceCapabilities(this IAccessRulesService s) { s.InitializeGuard(); AccessRulesServiceCapabilities r = null; s.Test.RunStep(() => r = s.ServiceClient.Port.GetServiceCapabilities(), "Get Service Capabilities(Access Rules)"); return(r); }