Replies: 1 comment 2 replies
-
As a rule of thumb, AutoFixture aims at generating data objects not fakes of services. There are addons (glue libraries) that help integrating AF with mocking frameworks like Moq or FakeItEasy but again these glue libraries should be seen more as a way to instrument the mocking frameworks so that their mocks/fakes return objects created via AF. |
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
-
What I'm hoping to find a way to do is the following.
Create a mock of interface ICasClient, that will provide methods I've setup, and delegate to underlying CasClient for things I didn't provide a setup for.
I realize I could change the architecture slightly so that the functioanlity I aim to override, could be defined in a different interface, and then I could mix/match/intermingle genuine concrete types and generated types... but trying to see if somethign like this is already doable with autofixture (bear with me, I'm new to autofixture and trying to understand how to accomplish different things )
Beta Was this translation helpful? Give feedback.
All reactions