I'm using a DLL that has several classes. I would like to dynamically implement interfaces for these classes, so that I can perform unit tests by doing mock of them.
Is there any way to do this?
Example:
The DLL has a class Comunicador
public class Comunicador
{
public void Executar()
{
//executa
}
}
Is there any way I can get this class to dynamically implement the interface below?
public interface IComunicador
{
void Executar();
}
This way, I want a property
public IComunicador Comunicador { get; set; }
Understand the following:
Comunicador = new Comunicador();