AddDbContext method for DI

I think it is either a negative case (i.e. the exception is expected) or we would need to add to the service collection what the context constructor is expecting. Not sure this was your question though...