Example #1
0
        /// <summary>
        /// Factory method to create a PickupFluent. Use instead of new(). Use at the start of the fluent method chain.
        /// </summary>
        /// <param name="pickup"></param>
        /// <returns></returns>
        public static PickupFluent <T> Create(IPickup pickup)
        {
            var a = new PickupFluent <T>
            {
                _pickup = (T)pickup
            };

            return(a);
        }
Example #2
0
        /// <summary>
        /// Factory method to create a PickupFluent. Use instead of new(). Use at the start of the fluent method chain.
        /// </summary>
        /// <returns></returns>
        public static PickupFluent <T> Create()
        {
            var a = new PickupFluent <T>()
            {
                _pickup = new T()
            };

            return(a);
        }