I'm dependency injecting a repository which calls the REST service so I thought I'd just inject another concrete class which gives the data the MVC app expects.
Is this the recommended approach and should I be doing this through an IoC container?
Secondly, when creating the fake data should I implement this using a mocking framework such as Moq or just hand code the data?
Aucun commentaire:
Enregistrer un commentaire