DataGenerator icon indicating copy to clipboard operation
DataGenerator copied to clipboard

Is there any way to intialize an object in it's constructor?

Open jfrank14 opened this issue 7 years ago • 0 comments

I've been using DataGenerator to do things like:

var data = DataGenerator.Generator.Default.Single<MyType>();

But sometimes I need to be able to do this:

class MyType
{...}

class MyTypeMocked : MyType
{
    void MyTypeMocked()
    {
         //initialize the class in place here, not via object creation by DataGenerator
    }
}

Is there any way to use DataGenerator to update the current object in this way?

jfrank14 avatar Sep 24 '18 18:09 jfrank14