示例#1
0
        public static bool ServiceSupports(ServiceFeatures SupportedFeature)
        {
            switch (SupportedFeature)
            {
            case ServiceFeatures.MinimumVersion:
            {
                return(ServiceVersionGreaterThan(Settings.MIN_SUPPORTED_VERSION));
            }

            case ServiceFeatures.ApprovedCRMActivityForms:
            {
                return(ServiceVersionGreaterThan("3.1.3.0"));
            }

            case ServiceFeatures.ContactPreferences:
            {
                return(ServiceVersionGreaterThan("3.1.4.0"));
            }

            default:
            {
                return(false);
            };
            }
        }
 protected static void SetShimKMPlatformUserAccess(Services services, ServiceFeatures serviceFeatures,
                                                   Dictionary <Access, bool> access)
 {
     KM.Platform.Fakes.ShimUser.HasAccessUserEnumsServicesEnumsServiceFeaturesEnumsAccess = (param1, param2, param3, param4) =>
     {
         if (param2 == services &&
             param3 == serviceFeatures)
         {
             if (access.ContainsKey(param4))
             {
                 return(access[param4]);
             }
         }
         return(false);
     };
 }