public async Task DoesNotPushUnchangedVerifiedPackages() { await Target.ExecuteAsync(); VerifyCompletedTelemetry(JobOutcome.NoOp); VerifiedPackagesDataClient.Verify( x => x.ReplaceLatestAsync(It.IsAny <HashSet <string> >(), It.IsAny <IAccessCondition>()), Times.Never); }
public async Task PushesRemovedVerifiedPackage() { OldVerifiedPackagesData.Add("NuGet.Versioning"); await Target.ExecuteAsync(); VerifyCompletedTelemetry(JobOutcome.Success); VerifiedPackagesDataClient.Verify( x => x.ReplaceLatestAsync( NewVerifiedPackagesData, It.Is <IAccessCondition>(a => a.IfMatchETag == OldVerifiedPackagesResult.Metadata.ETag)), Times.Once); }