protected override async Task <ShouldRunTestResult> ShouldRunAsync(ValidationContext context)
        {
            var databaseIndex = await context.GetIndexDatabaseAsync();

            var v3Index = await context.GetIndexV3Async();

            return(await ShouldRunTestUtility.Combine(
                       () => base.ShouldRunAsync(context),
                       () => ShouldRunIndexAsync(context, databaseIndex, v3Index)));
        }
        protected async override Task <ShouldRunTestResult> ShouldRunAsync(ValidationContext context)
        {
            if (!Config.RequireRepositorySignature)
            {
                return(ShouldRunTestResult.No);
            }

            return(await ShouldRunTestUtility.Combine(
                       () => base.ShouldRunAsync(context),
                       () => PackageExistsAsync(context)));
        }
Пример #3
0
 protected override Task <ShouldRunTestResult> ShouldRunAsync(ValidationContext context)
 {
     return(ShouldRunTestUtility.Combine(
                () => Task.FromResult(ShouldRunValidator(context)),
                () => base.ShouldRunAsync(context)));
 }