/// <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); }
/// <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); }
/// <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); }
void Ex01() { SimpleStep step = default !;