Beispiel #1
0
 /// <summary>
 /// Overload to make unit testing easier. May also add PgSql to DI services
 /// </summary>
 /// <param name="_pgSql"></param>
 public DataService(IPgSql _pgSql)
 {
     this.ModelName = new Repository <ModelName>(_pgSql);
 }
Beispiel #2
0
 /// <summary>
 /// Overload to make unit testing easier. May also add PgSql to DI services
 /// </summary>
 /// <param name="_pgSql"></param>
 public DataService(IPgSql _pgSql)
 {
     this.Songs   = new Repository <SongModel>(_pgSql);
     this.Artists = new Repository <ArtistModel>(_pgSql);
 }
Beispiel #3
0
 public Repository(IOptions <ApiConfig> configValues)
 {
     _PgSql = new iTekstovi.API.DAL.PgSql.PgSql(configValues);
 }
Beispiel #4
0
 public Repository(IPgSql _pgSql)
 {
     _PgSql = _pgSql;
 }
Beispiel #5
0
 public Repository()
 {
     _PgSql = new PgSqlLib.PgSql.PgSql();
 }