Ejemplo n.º 1
0
        /// <summary>
        /// The query is created but nothing has been done to it yet.
        /// </summary>
        /// <returns></returns>
        public static SimpleStep Construction()
        {
            var result = new SimpleStep(
                delegate(IScenario source) { }
                );

            return(result);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Forces the query to be evaluated by iterating over the items.
        /// </summary>
        /// <returns></returns>
        public static SimpleStep Evaluate()
        {
            var result = new SimpleStep(
                source =>
            {
                foreach (object o in source.BindableLinqQuery)
                {
                    o.ToString();
                }
            }
                );

            return(result);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Reads a given property to verify what would happen when a property is accessed (designed
        /// for verifying delayed execution).
        /// </summary>
        /// <typeparam name="TReturn">The type of the return.</typeparam>
        /// <param name="callback">The callback.</param>
        /// <returns></returns>
        public static SimpleStep Reading <TReturn>(Func <IBindableCollection, TReturn> callback)
        {
            var result = new SimpleStep(source => callback(source.BindableLinqQuery as IBindableCollection));

            return(result);
        }
Ejemplo n.º 4
0
 void Ex01()
 {
     SimpleStep step = default !;