mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-19 08:08:14 +08:00
unit tests for cache clearing passing
This commit is contained in:
@ -15,12 +15,14 @@ namespace Ocelot.UnitTests.Controllers
|
||||
{
|
||||
private OutputCacheController _controller;
|
||||
private Mock<IOcelotCache<HttpResponseMessage>> _cache;
|
||||
private Mock<IRegionsGetter> _getter;
|
||||
private IActionResult _result;
|
||||
|
||||
public OutputCacheControllerTests()
|
||||
{
|
||||
_cache = new Mock<IOcelotCache<HttpResponseMessage>>();
|
||||
_controller = new OutputCacheController(_cache.Object);
|
||||
_getter = new Mock<IRegionsGetter>();
|
||||
_controller = new OutputCacheController(_cache.Object, _getter.Object);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
Reference in New Issue
Block a user