Tynamix / ObjectFiller.NET

The .NET ObjectFiller fills the properties of your .NET objects with random data

Home Page:http://objectfiller.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Merging setup information based on inheritance and implementation

abstractlabs opened this issue · comments

Would it be possible for to create a filler and merge the setup with another filler allowing the class to configure a filler aginst one interface and merge it where that interface inherits the other. This same method could also be used where a class inherits another.

For example:
public interface ITrackable { DateTime Timestamp {get;set;} }
public interface IPerson: ITrackable { string Name {get;set;} }
var person = FillerSetup.Create<IPerson()...
var trackable FillerSetup.Create<ITrackable>()...
person.Merge(trackable)