[SOLVED] Defining inMemoryRepository via Context.Tag
Hi all,
I'm trying to create a testable repository pattern via effect.
Here's the pseudo code:
And I use it like so:
It works, but if you paid attention I had to do a hackery in the constructor of my class
It just doesn't feel right.
Am I doing something wrong?
I want to be able to define class so I can create a
Thank you
I'm trying to create a testable repository pattern via effect.
Here's the pseudo code:
And I use it like so:
It works, but if you paid attention I had to do a hackery in the constructor of my class
ProductsRepositoryLiveIt just doesn't feel right.
Am I doing something wrong?
I want to be able to define class so I can create a
InMemoryProductsRepository and keep the state within the class, something like so:Thank you
