Skip to content
This repository was archived by the owner on Dec 28, 2022. It is now read-only.
This repository was 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

@jfrank14

Description

@jfrank14

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions