Beispiel #1
0
            public static T Invent <T>(Action <IInventFactoryDsl <T> > action = null) where T : new()
            {
                var inventFactory = new InventFactory <T>();

                action.Do(r => r(inventFactory));

                return(inventFactory.Create());
            }
Beispiel #2
0
            public static T InventEmpty <T>() where T : new()
            {
                var inventFactory = new InventFactory <T>();

                return(inventFactory.CreateEmpty());
            }