Skip to content

Commit db80e5b

Browse files
committed
Does this work?
1 parent 1112e9a commit db80e5b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/ProfanityFilter.Services.Tests/ServiceCollectionExtensionsTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// Copyright (c) David Pine. All rights reserved.
22
// Licensed under the MIT License.
33

4+
using Microsoft.Extensions.Logging;
5+
using Microsoft.Extensions.Logging.Abstractions;
6+
47
namespace ProfanityFilter.Services.Tests;
58

69
[TestClass]
@@ -13,6 +16,7 @@ public void AddProfanityFilterServices_AddsServices()
1316
var services = new ServiceCollection();
1417

1518
// Act
19+
services.AddSingleton(typeof(ILogger<>), typeof(NullLogger<>));
1620
services.AddProfanityFilterServices();
1721

1822
// Assert

0 commit comments

Comments
 (0)