We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1112e9a commit db80e5bCopy full SHA for db80e5b
tests/ProfanityFilter.Services.Tests/ServiceCollectionExtensionsTests.cs
@@ -1,6 +1,9 @@
1
// Copyright (c) David Pine. All rights reserved.
2
// Licensed under the MIT License.
3
4
+using Microsoft.Extensions.Logging;
5
+using Microsoft.Extensions.Logging.Abstractions;
6
+
7
namespace ProfanityFilter.Services.Tests;
8
9
[TestClass]
@@ -13,6 +16,7 @@ public void AddProfanityFilterServices_AddsServices()
13
16
var services = new ServiceCollection();
14
17
15
18
// Act
19
+ services.AddSingleton(typeof(ILogger<>), typeof(NullLogger<>));
20
services.AddProfanityFilterServices();
21
22
// Assert
0 commit comments