public static PSSecurityExternalSecuritySolution ConvertToPSType(this ExternalSecuritySolution value)
        {
            var convertedAadValue = value as AadExternalSecuritySolution;

            if (convertedAadValue != null)
            {
                return(convertedAadValue.ConvertToPSType());
            }

            var convertedAtaValue = value as AtaExternalSecuritySolution;

            if (convertedAtaValue != null)
            {
                return(convertedAtaValue.ConvertToPSType());
            }

            var convertedCefValue = value as CefExternalSecuritySolution;

            if (convertedCefValue != null)
            {
                return(convertedCefValue.ConvertToPSType());
            }

            return(new PSSecurityExternalSecuritySolution()
            {
                Kind = "Error",
                Name = value.Name
            });
        }
Example #2
0
 private void ValidateExternalSecuritySolution(ExternalSecuritySolution externalSecuritySolution)
 {
     Assert.NotNull(externalSecuritySolution);
 }