public static T Invent <T>(Action <IInventFactoryDsl <T> > action = null) { var inventFactory = new InventFactory <T>(); action.Do(r => r(inventFactory)); return(inventFactory.Create()); }
public static T InventEmpty <T>() where T : new() { var inventFactory = new InventFactory <T>(); return(inventFactory.CreateEmpty()); }