Pibbles
Explore posts from serversUnit Testing Classes with Dependency Injection (ASP.NET Core)
hm, okay for now I think I'll mock the mapper, in reality I won't end up changing stuff a huge amount for it to be a pain, and I really don't like the idea of not mocking it, and then this unit test testing other units...you've convinced me
66 replies
Unit Testing Classes with Dependency Injection (ASP.NET Core)
I mean I would mock them if it weren't such a pain to do so
but I'd say that if it's still internal to the project, and not using the more external stuff like a database, I'd still think of it as a unit test
66 replies