Pergunta de entrevista da empresa Perficient

You need to unit test Class A. Class A uses a Service Class B. How can you unit test Class A?

Resposta da entrevista

Sigiloso

20 de fev. de 2018

I will Assume that Service Class B already has coverage, because that is the proper order of operations. So build the Class A unit tests with a mocked Service Class B.