mardi 27 novembre 2018

Mock Entity Framework models

I want to fake my complex object (object with 5 objects properties) to test the post method in the controller.

When I use FakeItEasy, I get object with nulls, and I can't insert the object to the DbContext.

So how can I fake this? Manualy?

Aucun commentaire:

Enregistrer un commentaire