ObjectFiller.NET icon indicating copy to clipboard operation
ObjectFiller.NET copied to clipboard

Merging setup information based on inheritance and implementation

Open abstractlabs opened this issue 8 years ago • 0 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)

abstractlabs avatar Jan 18 '17 20:01 abstractlabs