| 8 | } |
| 9 | |
| 10 | public class DbContext : IDbContext |
| 11 | { |
| 12 | private readonly DbDataSource _ds; |
| 13 | |
| 14 | public DbContext(DbDataSource ds) |
| 15 | { |
| 16 | _ds = ds ?? throw new ArgumentNullException(nameof(ds)); |
| 17 | } |
| 18 | |
| 19 | public DbConnection Connection => _ds.CreateConnection(); |
| 20 | } |
nothing calls this directly
no outgoing calls
no test coverage detected