public SqlKataPortfolioRepositoryFixture() { _dbConnection = new SqliteConnection("Data Source=:memory:"); _dbConnection.Open(); var db = new SqlKataDatabase(_dbConnection, new SqliteCompiler()); this.PortfolioRepository = new(db); }
public SqlKataPortfolioEntryRepositoryFixture() { _dbConnection = new SqliteConnection("Data Source=:memory:"); _dbConnection.Open(); var db = new SqlKataDatabase(_dbConnection, new SqliteCompiler()); this.PortfolioRepository = new(db); this.PortfolioEntryRepository = new(db); DefaultPortfolioId = PortfolioRepository.Add(new("Foo", "Bar", Currency.Czk)); SecondaryPortfolioId = PortfolioRepository.Add(new("Bar", "Bar", Currency.Czk)); }