What is the way to go to fake my database layer in a unit test?
- by Michel
Hi,
i have a question about unit testing.
say i have a controller with one create method which puts a new customer in the database:
//code a bit shortened
public actionresult Create(Formcollection formcollection){
client c = nwe client();
c.Name = formcollection["name"];
ClientService.Save(c);
{
Clientservice would call a datalayer…