IDependency
.SendCommand
, we need an object implementing IDependency
to create an instance of MyService
. For this reason, we can create a fake of IDependency
. Additionally, we can introduce custom logic to track the input it receives and how many times it gets executed.