Exemplo n.º 1
0
        public async System.Threading.Tasks.Task WhenIMakeARequestToGetClaimPermissionsAsync()
        {
            IClaimsService claimsService = this.serviceProvider.GetRequiredService <IClaimsService>();

            try
            {
                object result = await claimsService.GetSwaggerAsync();
            }
            catch (Exception ex)
            {
                this.scenarioContext.Set(ex, "Exception");
            }
        }
 /// <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 IClaimsService operations)
 {
     return(operations.GetSwaggerAsync().GetAwaiter().GetResult());
 }