Put interface behind database provider for testing. Use state object to get data from database, then map to model.
This commit is contained in:
parent
5a0d0933ce
commit
20ccdd07f1
11 changed files with 118 additions and 34 deletions
9
Website/Data/IDatabaseProvider.cs
Normal file
9
Website/Data/IDatabaseProvider.cs
Normal file
|
@ -0,0 +1,9 @@
|
|||
using System.Data;
|
||||
|
||||
namespace Website.Data
|
||||
{
|
||||
public interface IDatabaseProvider
|
||||
{
|
||||
IDbConnection NewConnection();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue