How can I test the following method?
It is a method on a concrete class implementation of an interface.
I have wrapped the Process
class with an interface that only exposes the methods and properties I need. The ProcessWrapper
class is the concrete implementation of this interface.
public void Initiate(IEnumerable<Cow> cows)
{
foreach (Cow c in cows)
{
c.Process = new ProcessWrapper(c);
c.Process.Start();
count++;
}
}