Hi,
I have a simple function, just want an idea of how I would convert my coding style to IOC.
public User GetUserByID(int userID)
{
DataProvider dp = new DataProvider();
return dp.GetUserByID(userID);
}
my dataprovider is simple ADO.net, it opens a connection, calls the sproc and returns the User object.