Ejemplo n.º 1
0
 /// <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);
     }
 }
Ejemplo n.º 2
0
 /// <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);
     }
 }
Ejemplo n.º 3
0
 /// <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);
 }
Ejemplo n.º 4
0
 /// <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();
 }
Ejemplo n.º 5
0
 public ValuesController(IArrayOperations array)
 {
     _array = array;
 }
Ejemplo n.º 6
0
 /// <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);
 }
Ejemplo n.º 7
0
 /// <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();
 }
Ejemplo n.º 9
0
 /// <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());
 }
Ejemplo n.º 10
0
 /// <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();
 }
Ejemplo n.º 11
0
 /// <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());
 }
Ejemplo n.º 12
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="arrayoperations"></param>
 public ArrayCalcController(IArrayOperations arrayoperations)
 {
     this.arrayOperations = arrayoperations;
 }
Ejemplo n.º 13
0
 /// <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();
 }
Ejemplo n.º 15
0
 /// <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());
 }
Ejemplo n.º 16
0
 /// <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());
 }
Ejemplo n.º 17
0
 public ArrayOperationsController()
 {
     this.arrayOpsImplementation = WindsorContainerConfiguration.IocResolve <IArrayOperations>();
 }
Ejemplo n.º 18
0
 public ArrayOperationsComponentTests()
 {
     this.arrayOperations = new ArrayOperationsComponent();
 }