Creating a Repository
Mostly, using mock of the database requires to create an interface. Interface allows our code to define an object with some method.
Right-click on model folder, then add a new interface called Repository.
public interface Repository
{
List<Product> GetAll();
}