Pergunta de entrevista da empresa Apriva

Looking at this class structure and how it works, assuming that this class only does this one thing, refactor it so that it doesn't rely on this specific object to get data.

Resposta da entrevista

Sigiloso

20 de ago. de 2015

This was a whiteboard question following a discussion about inversion of control. I did not get this one right. When I hear "dependency injection" I just think dependency resolver so I wrote up some Ninject code. He got me on the principle vs. the implementation. He showed me how to do the constructor injection and talked about why I would want to do it.