PrintsCharming / ObjectHydrator

This project allows you to pass custom POCO's to it, and have it return an instance of the class populated with randomly generated data. This random data can be overridden by convention.
Apache License 2.0
39 stars 19 forks source link

Hydrator is trying to instantiate the Abstract class #21

Open mayankgoyel opened 6 years ago

mayankgoyel commented 6 years ago

In current implementation, we have a check for interfaces but not for abstract classes. Therefore, if I have an abstract class type field then Hydrator tries to instantiate it and resulted in an exception.

mayankgoyel commented 6 years ago

I fixed the issue under: https://github.com/mayankgoyel/ObjectHydrator/commit/0312bad51026cef7c5825156e4603642d07c90be

Will pull it once my last pull request is merged.

DavidBasarab commented 6 years ago

When will this get merged into the master and get into the nuget package?