File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
src/NHibernate.Test/Async/SecondLevelCacheTest Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -49,12 +49,13 @@ public async Task InvalidatesEntitiesAsync()
49
49
var preInvalidations = new List < IReadOnlyCollection < string > > ( ) ;
50
50
var invalidations = new List < IReadOnlyCollection < string > > ( ) ;
51
51
52
- cache
53
- . When ( x=> x . PreInvalidate ( Arg . Any < IReadOnlyCollection < string > > ( ) ) )
54
- . Do ( x=> preInvalidations . Add ( ( ( IReadOnlyCollection < string > ) x [ 0 ] ) . ToList ( ) ) ) ;
55
- cache
56
- . When ( x => x . Invalidate ( Arg . Any < IReadOnlyCollection < string > > ( ) ) )
57
- . Do ( x => invalidations . Add ( ( ( IReadOnlyCollection < string > ) x [ 0 ] ) . ToList ( ) ) ) ;
52
+ await cache . PreInvalidateAsync (
53
+ Arg . Do < IReadOnlyCollection < string > > ( x => preInvalidations . Add ( x . ToList ( ) ) ) ,
54
+ CancellationToken . None ) ;
55
+
56
+ await cache . InvalidateAsync (
57
+ Arg . Do < IReadOnlyCollection < string > > ( x => invalidations . Add ( x . ToList ( ) ) ) ,
58
+ CancellationToken . None ) ;
58
59
59
60
using ( ISession session = OpenSession ( ) )
60
61
{
You can’t perform that action at this time.
0 commit comments