/// <summary>
 /// View swagger definition for this API
 /// </summary>
 /// <remarks>
 /// View swagger definition for this API
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> GetSwaggerAsync(this IMarainOperations operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetSwaggerWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Operations - Retrieve operation
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='tenantId'>
 /// Id of the Tenant.
 /// </param>
 /// <param name='operationId'>
 /// Id of the Operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <Operation> GetOperationByIdAsync(this IMarainOperations operations, string tenantId, System.Guid operationId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetOperationByIdWithHttpMessagesAsync(tenantId, operationId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
        public async Task WhenIUseTheOperationsStatusClientToGetTheOperationWithId(Guid id)
        {
            IServiceProvider  serviceProvider = ContainerBindings.GetServiceProvider(this.FeatureContext);
            IMarainOperations client          = serviceProvider.GetRequiredService <IMarainOperations>();
            var transientTenantManager        = TransientTenantManager.GetInstance(this.FeatureContext);

            await Exceptions.ExecuteAndStoreExceptionAsync(
                this.ScenarioContext,
                async() =>
            {
                Client.OperationsStatus.Models.Operation?operation = await client.GetOperationByIdAsync(
                    transientTenantManager.PrimaryTransientClient.Id,
                    id).ConfigureAwait(false);

                this.ScenarioContext.Set(operation, LastResponseContextKey);
            }).ConfigureAwait(false);
        }
 /// <summary>
 /// View swagger definition for this API
 /// </summary>
 /// <remarks>
 /// View swagger definition for this API
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static object GetSwagger(this IMarainOperations operations)
 {
     return(operations.GetSwaggerAsync().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Operations - Retrieve operation
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='tenantId'>
 /// Id of the Tenant.
 /// </param>
 /// <param name='operationId'>
 /// Id of the Operation.
 /// </param>
 public static Operation GetOperationById(this IMarainOperations operations, string tenantId, System.Guid operationId)
 {
     return(operations.GetOperationByIdAsync(tenantId, operationId).GetAwaiter().GetResult());
 }