/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='specification'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> PutConsentAsync(this IApi operations, ConsentSpecification specification = default(ConsentSpecification), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PutConsentWithHttpMessagesAsync(specification, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <inheritdoc /> public JsonSerializationTests(ITestOutputHelper output) { this.output = output; registry = KnownEvidence.Registry; serializerSettings = ConfigureJsonOptions.ConfigureSerializer( new JsonSerializerSettings(), new XunitLogger <IIdentifierValueDtoJsonConverter>( output, "test")); consentSpecification = new ConsentSpecification { Evidence = new[] { Evidences.ServerMedwayDto(givenBy: "Self", takenBy: "Nurse Brown"), Evidences.ServerImportFileDto("test.xml", line: 15, offset: 12), } }; }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='specification'> /// </param> public static object PutConsent(this IApi operations, ConsentSpecification specification = default(ConsentSpecification)) { return(operations.PutConsentAsync(specification).GetAwaiter().GetResult()); }