How to get a _Accessor object from Factories? (C#)

How to get a _Accessor object from Factories? (C#)

Post by RGFiYmxlck » Wed, 05 Nov 2008 19:28:01


I need to test the private Property IsBlue of a Sky object.

This can easliy be done by letting vstudio create a Sky_Accessor object for
me.

However, in my code the only way to obtain a Sky object is through the
static Build.Sky() factory method.

How can I achieve that the Build.Sky() method returns a Sky_Accessor?