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.
Hydrator.WithEnum generates a System.InvalidCastException
System.InvalidCastException :
Unable to cast object of type 'Foundation.ObjectHydrator.Generators.EnumGenerator' to type 'Foundation.ObjectHydrator.Interfaces.IGenerator1[Foundation.ObjectHydrator.Tests.POCOs.CustomerType]'. at Foundation.ObjectHydrator.Hydrator1.WithEnum[TProperty](Expression`1 expression, Array enumValues) in D:\git_external\ObjectHydrator\Foundation.ObjectHydrator\Hydrator.cs:line 215
at Foundation.ObjectHydrator.Tests.HydratorTests.Hydrator_ComplexCustomer_Tests.CanLoadSingleComplexCustomerWithEnum() in D:\git_external\ObjectHydrator\Foundation.ObjectHydrator.Tests\HydratorTests\Hydrator_ComplexCustomer_Tests.cs:line 122
Hydrator.WithEnum generates a System.InvalidCastException
System.InvalidCastException : Unable to cast object of type 'Foundation.ObjectHydrator.Generators.EnumGenerator' to type 'Foundation.ObjectHydrator.Interfaces.IGenerator
1[Foundation.ObjectHydrator.Tests.POCOs.CustomerType]'. at Foundation.ObjectHydrator.Hydrator
1.WithEnum[TProperty](Expression`1 expression, Array enumValues) in D:\git_external\ObjectHydrator\Foundation.ObjectHydrator\Hydrator.cs:line 215 at Foundation.ObjectHydrator.Tests.HydratorTests.Hydrator_ComplexCustomer_Tests.CanLoadSingleComplexCustomerWithEnum() in D:\git_external\ObjectHydrator\Foundation.ObjectHydrator.Tests\HydratorTests\Hydrator_ComplexCustomer_Tests.cs:line 122