/// <summary> /// Get complex types with array property which is empty /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async System.Threading.Tasks.Task <ArrayWrapper> GetEmptyAsync(this IArrayOperations operations, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.GetEmptyWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get complex types with array property /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ArrayWrapper> GetValidAsync(this IArrayOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetValidWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Put complex types with array property /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='array'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async System.Threading.Tasks.Task PutValidAsync(this IArrayOperations operations, System.Collections.Generic.IList <string> array = default(System.Collections.Generic.IList <string>), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { await operations.PutValidWithHttpMessagesAsync(array, null, cancellationToken).ConfigureAwait(false); }
/// <summary> /// Put complex types with array property /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='array'> /// </param> public static void PutValid(this IArrayOperations operations, System.Collections.Generic.IList <string> array = default(System.Collections.Generic.IList <string>)) { System.Threading.Tasks.Task.Factory.StartNew(s => ((IArrayOperations)s).PutValidAsync(array), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }
public ValuesController(IArrayOperations array) { _array = array; }
/// <summary> /// Put complex types with array property /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='array'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task PutValidAsync(this IArrayOperations operations, IList <string> array = default(IList <string>), CancellationToken cancellationToken = default(CancellationToken)) { await operations.PutValidWithHttpMessagesAsync(array, null, cancellationToken).ConfigureAwait(false); }
/// <summary> /// Put complex types with array property /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='array'> /// </param> public static void PutValid(this IArrayOperations operations, IList <string> array = default(IList <string>)) { Task.Factory.StartNew(s => ((IArrayOperations)s).PutValidAsync(array), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }
public void SetupUnitTests() { _arrayIntersection = new ArrayOperations(); }
/// <summary> /// Get complex types with array property which is empty /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static ArrayWrapperInner GetEmpty(this IArrayOperations operations) { return(operations.GetEmptyAsync().GetAwaiter().GetResult()); }
/// <summary> /// Put complex types with array property /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='array'> /// </param> public static void PutValid(this IArrayOperations operations, IList <string> array = default(IList <string>)) { operations.PutValidAsync(array).GetAwaiter().GetResult(); }
/// <summary> /// Get complex types with array property while server doesn't provide a /// response payload /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static ArrayWrapperInner GetNotProvided(this IArrayOperations operations) { return(operations.GetNotProvidedAsync().GetAwaiter().GetResult()); }
/// <summary> /// Constructor /// </summary> /// <param name="arrayoperations"></param> public ArrayCalcController(IArrayOperations arrayoperations) { this.arrayOperations = arrayoperations; }
/// <summary> /// Get complex types with array property /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static ArrayWrapper GetValid(this IArrayOperations operations) { return(operations.GetValidAsync().GetAwaiter().GetResult()); }
public void Setup() { arrayOperations = new ArrayOperations(); }
/// <summary> /// Get complex types with array property which is empty /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static ArrayWrapperInner GetEmpty(this IArrayOperations operations) { return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IArrayOperations)s).GetEmptyAsync(), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Get complex types with array property /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static ArrayWrapper GetValid(this IArrayOperations operations) { return(Task.Factory.StartNew(s => ((IArrayOperations)s).GetValidAsync(), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
public ArrayOperationsController() { this.arrayOpsImplementation = WindsorContainerConfiguration.IocResolve <IArrayOperations>(); }
public ArrayOperationsComponentTests() { this.arrayOperations = new ArrayOperationsComponent(); }