Replies: 1 comment 2 replies
-
Hi @runegri sorry for the delay, have you been able to do it? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. I am trying to write unit tests for some classes that reference an
IFusionCache
object. Are there any recommendations on how I can setup a mock object so that I can simulate the various scenarios where data is found in the cache or not found in the cache? I could probably setup a full FusionCache instance for each test, but that seems very counter productive and error prone.Ideally I would love to setup various mocks, where one has the expected data, one does not have the expected data and fusion cache calls my factory method, and so on.
Beta Was this translation helpful? Give feedback.
All reactions