Skip to content
This repository has been archived by the owner on Dec 28, 2022. It is now read-only.

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

Open
jfrank14 opened this issue Sep 24, 2018 · 0 comments
Open

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

jfrank14 opened this issue Sep 24, 2018 · 0 comments

Comments

@jfrank14
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant