Skip to content

Feature Request: ActLike<BaseClass> #24

@meikeric

Description

@meikeric

Add ability to pass a Base Class Type to ActLike and have it generate that object.
Reasoning: Dynamic Entity Framework Core.

Sample Unit Test Usage for Entity Framework:

            dynamic testObject = new ExpandoObject();

            //dynamic testObjectContext = testObject.ActLike<DbContext>();
            dynamic testObjectContext = Impromptu.ActLike<DbContext>(testObject);

            Type testObjectContextType = testObjectContext.GetType();

            Assert.True(testObjectContextType.IsSubclassOf(typeof(DbContext)));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions