@@ -16,7 +16,7 @@ public async Task ConstantCache()
1616 Instance . Setup ( x => x . WorkWithResultAsync ( It . Is < int > ( i=> i == 1 ) , It . IsAny < CancellationToken > ( ) ) ) . ReturnsAsync ( 1 ) ;
1717 Instance . Setup ( x => x . WorkWithResultAsync ( It . Is < int > ( i=> i == 2 ) , It . IsAny < CancellationToken > ( ) ) ) . ReturnsAsync ( 2 ) ;
1818
19- var proxy = CreateTestObject ( x => x . AddAbsoluteTimeoutCache ( Expiration ) ) ;
19+ var proxy = CreateTestObject ( x => x . AddAbsoluteExpirationCache ( Expiration ) ) ;
2020 await Parallel . ForAsync ( 0 , 100 , async ( _ , _ ) =>
2121 {
2222 ( await proxy . WorkWithResultAsync ( 1 , Ct ) ) . Should ( ) . Be ( 1 ) ;
@@ -30,7 +30,7 @@ public async Task AbsoluteExpirationErrorNotCached()
3030 Instance . Setup ( x => x . WorkWithResultAsync ( It . IsAny < int > ( ) , It . IsAny < CancellationToken > ( ) ) )
3131 . ThrowsAsync ( new InvalidOperationException ( ) ) ;
3232
33- var proxy = CreateTestObject ( x => x . AddAbsoluteTimeoutCache ( Expiration ) ) ;
33+ var proxy = CreateTestObject ( x => x . AddAbsoluteExpirationCache ( Expiration ) ) ;
3434
3535 var func = async ( ) => await proxy . WorkWithResultAsync ( 1 , Ct ) ;
3636 await func . Should ( ) . ThrowAsync < InvalidOperationException > ( ) ;
@@ -45,7 +45,7 @@ public async Task SlidingExpirationErrorNotCached()
4545 Instance . Setup ( x => x . WorkWithResultAsync ( It . IsAny < int > ( ) , It . IsAny < CancellationToken > ( ) ) )
4646 . ThrowsAsync ( new InvalidOperationException ( ) ) ;
4747
48- var proxy = CreateTestObject ( x => x . AddSlidingTimeoutCache ( Expiration ) ) ;
48+ var proxy = CreateTestObject ( x => x . AddSlidingExpirationCache ( Expiration ) ) ;
4949
5050 var func = async ( ) => await proxy . WorkWithResultAsync ( 1 , Ct ) ;
5151 await func . Should ( ) . ThrowAsync < InvalidOperationException > ( ) ;
@@ -60,7 +60,7 @@ public async Task AbsoluteExpiration()
6060 Instance . Setup ( x => x . WorkWithResultAsync ( It . Is < int > ( i=> i == 1 ) , It . IsAny < CancellationToken > ( ) ) ) . ReturnsAsync ( 1 ) ;
6161 Instance . Setup ( x => x . WorkWithResultAsync ( It . Is < int > ( i=> i == 2 ) , It . IsAny < CancellationToken > ( ) ) ) . ReturnsAsync ( 2 ) ;
6262
63- var proxy = CreateTestObject ( x => x . AddAbsoluteTimeoutCache ( Expiration ) ) ;
63+ var proxy = CreateTestObject ( x => x . AddAbsoluteExpirationCache ( Expiration ) ) ;
6464
6565 //first pass
6666 await Parallel . ForAsync ( 0 , 100 , async ( _ , _ ) =>
@@ -87,7 +87,7 @@ public async Task SlidingExpiration()
8787 Instance . Setup ( x => x . WorkWithResultAsync ( It . Is < int > ( i=> i == 1 ) , It . IsAny < CancellationToken > ( ) ) ) . ReturnsAsync ( 1 ) ;
8888 Instance . Setup ( x => x . WorkWithResultAsync ( It . Is < int > ( i=> i == 2 ) , It . IsAny < CancellationToken > ( ) ) ) . ReturnsAsync ( 2 ) ;
8989
90- var proxy = CreateTestObject ( x => x . AddSlidingTimeoutCache ( Expiration ) ) ;
90+ var proxy = CreateTestObject ( x => x . AddSlidingExpirationCache ( Expiration ) ) ;
9191
9292 //first pass
9393 await Parallel . ForAsync ( 0 , 100 , async ( _ , _ ) =>
@@ -114,7 +114,7 @@ public async Task SlidingExpirationOverlap()
114114 Instance . Setup ( x => x . WorkWithResultAsync ( It . Is < int > ( i=> i == 1 ) , It . IsAny < CancellationToken > ( ) ) ) . ReturnsAsync ( 1 ) ;
115115 Instance . Setup ( x => x . WorkWithResultAsync ( It . Is < int > ( i=> i == 2 ) , It . IsAny < CancellationToken > ( ) ) ) . ReturnsAsync ( 2 ) ;
116116
117- var proxy = CreateTestObject ( x => x . AddSlidingTimeoutCache ( Expiration ) ) ;
117+ var proxy = CreateTestObject ( x => x . AddSlidingExpirationCache ( Expiration ) ) ;
118118
119119 //first pass
120120 await Parallel . ForAsync ( 0 , 100 , async ( _ , _ ) =>
0 commit comments