File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 66 <ItemGroup >
77 <PackageReference Include =" Microsoft.Extensions.DependencyInjection" Version =" 2.1.0" />
88 <PackageReference Include =" Microsoft.Extensions.Logging" Version =" 2.1.0" />
9+ <PackageReference Include =" Microsoft.Extensions.Logging.Console" Version =" 2.1.0" />
910 <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 15.7.2" />
1011 <PackageReference Include =" xunit" Version =" 2.3.1" />
1112 <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.3.1" />
Original file line number Diff line number Diff line change 88using Xunit ;
99using Microsoft . Extensions . DependencyInjection ;
1010using Microsoft . Extensions . Configuration ;
11+ using Microsoft . Extensions . Logging ;
1112
1213namespace Enyim . Caching . Tests
1314{
@@ -18,10 +19,8 @@ public abstract class MemcachedClientTestsBase
1819 public MemcachedClientTestsBase ( )
1920 {
2021 IServiceCollection services = new ServiceCollection ( ) ;
21- var configuration = new ConfigurationBuilder ( ) . Build ( ) ;
22- services . AddSingleton < IConfiguration > ( configuration ) ;
2322 services . AddEnyimMemcached ( options => options . AddServer ( "memcached" , 11211 ) ) ;
24- services . AddLogging ( ) ;
23+ services . AddLogging ( builder => builder . SetMinimumLevel ( LogLevel . Debug ) . AddConsole ( ) ) ;
2524 IServiceProvider serviceProvider = services . BuildServiceProvider ( ) ;
2625 _client = serviceProvider . GetService < IMemcachedClient > ( ) as MemcachedClient ;
2726 }
You can’t perform that action at this time.
0 commit comments