AddDbContext method for DI

Unit tests only. I should probably add a comment.