Open meikeric opened 6 years ago
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)));
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: