Trivial: Make running tests less noisy

This commit is contained in:
Craig Fowler 2021-04-02 13:46:47 +01:00
parent 2e3aef2740
commit da88ee1b95

View file

@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
namespace Elsa.Testing.Shared.Helpers
{
@ -19,7 +20,9 @@ namespace Elsa.Testing.Shared.Helpers
/// the host builder as it is created.
/// </summary>
/// <returns>The services callbacks</returns>
public IList<Action<IServiceCollection>> ServiceCallbacks { get; } = new List<Action<IServiceCollection>>();
public IList<Action<IServiceCollection>> ServiceCallbacks { get; } = new List<Action<IServiceCollection>> {
services => services.AddLogging(l => l.SetMinimumLevel(LogLevel.Warning)),
};
/// <summary>
/// Gets a collection of the callbacks to be executed upon the <see cref="ElsaOptions"/> of