/// <summary> /// Tests the main logic behave as expected. <see cref="NuGetApiPublisher.Test"/> for more details. /// </summary> async Task TestAsync(IEnumerable <DiscoveryItem> apis) { foreach (var item in apis) { var publisher = new NuGetApiPublisher(item) { TemplateDirectory = TemplateDirectory, }; try { await publisher.Test(options.ApisDirectory); } catch (Exception ex) { TraceSource.TraceEvent(TraceEventType.Error, "{0}\t Exception [{1}] occurred", item, ex.Message); } } }
/// <summary> /// Tests the main logic behave as expected. <see cref="NuGetApiPublisher.Test"/> for more details. /// </summary> async Task TestAsync(IEnumerable<DiscoveryItem> apis) { foreach (var item in apis) { var publisher = new NuGetApiPublisher(item) { TemplateDirectory = TemplateDirectory, }; try { await publisher.Test(options.ApisDirectory); } catch (Exception ex) { TraceSource.TraceEvent(TraceEventType.Error, "{0}\t Exception [{1}] occurred", item, ex.Message); } } }