예제 #1
0
        private void ValidatePackage(IPackageDetails package)
        {
            package.ResetValidationContext();

            _apiPackageRegistry.Validate(package);

            if (package.ValidationContext.GetErrorCount(ValidationTags.Api) > 0)
            {
                throw new ApiValidationException(package.ValidationContext.GetErrors(ValidationTags.Api).First().Message);
            }
        }
 private void ValidatePackage(IPackageDetails package)
 {
     package.ResetValidationContext();
     _apiPackageRegistry.Validate(package);
 }