/// <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); }
/// <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); }
public Repository(IOptions <ApiConfig> configValues) { _PgSql = new iTekstovi.API.DAL.PgSql.PgSql(configValues); }
public Repository(IPgSql _pgSql) { _PgSql = _pgSql; }
public Repository() { _PgSql = new PgSqlLib.PgSql.PgSql(); }