@@ -66,8 +66,8 @@ public void custom_default_cache_key_generator_called_and_key_used()
6666 var result = client . GetAsync ( _url + "sample/Get_c100_s100" ) . Result ;
6767
6868 _cache . Verify ( s => s . Contains ( It . Is < string > ( x => x == "keykeykey" ) ) , Times . Exactly ( 2 ) ) ;
69- _cache . Verify ( s => s . Add ( It . Is < string > ( x => x == "keykeykey" ) , It . IsAny < byte [ ] > ( ) , It . Is < DateTimeOffset > ( x => x <= DateTime . Now . AddSeconds ( 100 ) ) , It . Is < string > ( x => x == "sample -get_c100_s100" ) ) , Times . Once ( ) ) ;
70- _cache . Verify ( s => s . Add ( It . Is < string > ( x => x == "keykeykey:response-ct" ) , It . IsAny < object > ( ) , It . Is < DateTimeOffset > ( x => x <= DateTime . Now . AddSeconds ( 100 ) ) , It . Is < string > ( x => x == "sample -get_c100_s100" ) ) , Times . Once ( ) ) ;
69+ _cache . Verify ( s => s . Add ( It . Is < string > ( x => x == "keykeykey" ) , It . IsAny < byte [ ] > ( ) , It . Is < DateTimeOffset > ( x => x <= DateTime . Now . AddSeconds ( 100 ) ) , It . Is < string > ( x => x == "webapi.outputcache.v2.tests.testcontrollers.samplecontroller -get_c100_s100" ) ) , Times . Once ( ) ) ;
70+ _cache . Verify ( s => s . Add ( It . Is < string > ( x => x == "keykeykey:response-ct" ) , It . IsAny < object > ( ) , It . Is < DateTimeOffset > ( x => x <= DateTime . Now . AddSeconds ( 100 ) ) , It . Is < string > ( x => x == "webapi.outputcache.v2.tests.testcontrollers.samplecontroller -get_c100_s100" ) ) , Times . Once ( ) ) ;
7171
7272 _keyGeneratorA . VerifyAll ( ) ;
7373 }
@@ -79,8 +79,8 @@ public void custom_cache_key_generator_called()
7979 var result = client . GetAsync ( _url + "cachekey/get_custom_key" ) . Result ;
8080
8181 _cache . Verify ( s => s . Contains ( It . Is < string > ( x => x == "custom_key" ) ) , Times . Exactly ( 2 ) ) ;
82- _cache . Verify ( s => s . Add ( It . Is < string > ( x => x == "custom_key" ) , It . IsAny < byte [ ] > ( ) , It . Is < DateTimeOffset > ( x => x <= DateTime . Now . AddSeconds ( 100 ) ) , It . Is < string > ( x => x == "cachekey -get_custom_key" ) ) , Times . Once ( ) ) ;
83- _cache . Verify ( s => s . Add ( It . Is < string > ( x => x == "custom_key:response-ct" ) , It . IsAny < object > ( ) , It . Is < DateTimeOffset > ( x => x <= DateTime . Now . AddSeconds ( 100 ) ) , It . Is < string > ( x => x == "cachekey -get_custom_key" ) ) , Times . Once ( ) ) ;
82+ _cache . Verify ( s => s . Add ( It . Is < string > ( x => x == "custom_key" ) , It . IsAny < byte [ ] > ( ) , It . Is < DateTimeOffset > ( x => x <= DateTime . Now . AddSeconds ( 100 ) ) , It . Is < string > ( x => x == "webapi.outputcache.v2.tests.testcontrollers.cachekeycontroller -get_custom_key" ) ) , Times . Once ( ) ) ;
83+ _cache . Verify ( s => s . Add ( It . Is < string > ( x => x == "custom_key:response-ct" ) , It . IsAny < object > ( ) , It . Is < DateTimeOffset > ( x => x <= DateTime . Now . AddSeconds ( 100 ) ) , It . Is < string > ( x => x == "webapi.outputcache.v2.tests.testcontrollers.cachekeycontroller -get_custom_key" ) ) , Times . Once ( ) ) ;
8484 }
8585 }
8686}
0 commit comments