public void AddProvider_WhenProviderIsNull_ThrowsArgumentNullException() { Assert.Throws <ArgumentNullException>(() => { _factory.AddProvider <DummyLogProvider>(null); }); }
/// <summary> /// Method for adding the <see cref="ServiceProvider"/> to the <see cref="LogService"/>. /// </summary> public static void AddDebug(this ILogServiceFactory @this) { Argument.NotNull( @this, nameof(@this)); var provider = new ServiceProvider(); @this.AddProvider(provider); }