File tree Expand file tree Collapse file tree 1 file changed +0
-2
lines changed
test/Libraries/Microsoft.Extensions.Caching.Hybrid.Tests Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Original file line number Diff line number Diff line change @@ -195,14 +195,12 @@ public void CanCreateKeyedServicesWithKeyedDistributedCaches()
195
195
var cacheOneBackend = Assert . IsType < CustomMemoryDistributedCache1 > ( cacheOne . BackendCache ) ;
196
196
Assert . Same ( typeof ( CustomMemoryDistributedCache1 ) , cacheOneOptions . DistributedCacheServiceKey ) ;
197
197
Assert . Same ( cacheOneBackend , provider . GetRequiredKeyedService < IDistributedCache > ( typeof ( CustomMemoryDistributedCache1 ) ) ) ;
198
- Assert . IsType < CustomMemoryDistributedCache1 > ( cacheOne . BackendCache ) ;
199
198
200
199
var cacheTwo = Assert . IsType < DefaultHybridCache > ( provider . GetRequiredKeyedService < HybridCache > ( "two" ) ) ;
201
200
var cacheTwoOptions = cacheTwo . Options ;
202
201
var cacheTwoBackend = Assert . IsType < CustomMemoryDistributedCache2 > ( cacheTwo . BackendCache ) ;
203
202
Assert . Same ( typeof ( CustomMemoryDistributedCache2 ) , cacheTwoOptions . DistributedCacheServiceKey ) ;
204
203
Assert . Same ( cacheTwoBackend , provider . GetRequiredKeyedService < IDistributedCache > ( typeof ( CustomMemoryDistributedCache2 ) ) ) ;
205
- Assert . IsType < CustomMemoryDistributedCache2 > ( cacheTwo . BackendCache ) ;
206
204
}
207
205
208
206
[ Fact ]
You can’t perform that action at this time.
0 commit comments