# Summary

Class: | WireMock.ResponseProviders.ProxyAsyncResponseProvider
Assembly: | WireMock.Net
File(s): | C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\ResponseProviders\ProxyAsyncResponseProvider.cs
Covered lines: | 7
Uncovered lines: | 3
Coverable lines: | 10
Total lines: | 28
Line coverage: | 70%

# Metrics

Method | Cyclomatic complexity | NPath complexity | Sequence coverage | Branch coverage
--- | --- | --- | --- | ---
ProvideResponseAsync(...) | 0 | 0 | 0 | 0
.ctor(...) | 0 | 0 | 1 | 0

# File(s)

## C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\ResponseProviders\ProxyAsyncResponseProvider.cs

| # | Line |  | Line coverage
--- | --- | --- | --- | ---
|  | `1` |  | `using System;`
|  | `2` |  | `using System.Threading.Tasks;`
|  | `3` |  | `using JetBrains.Annotations;`
|  | `4` |  | `using WireMock.Settings;`
|  | `5` |  | `using WireMock.Validation;`
|  | `6` |  | ``
|  | `7` |  | `namespace WireMock.ResponseProviders`
|  | `8` |  | `{`
|  | `9` |  | `internal class ProxyAsyncResponseProvider : IResponseProvider`
|  | `10` |  | `{`
|  | `11` |  | `private readonly Func<RequestMessage, IProxyAndRecordSettings, Task<ResponseMessage>> _responseMessageFunc;`
|  | `12` |  | `private readonly IProxyAndRecordSettings _settings;`
|  | `13` |  | ``
| 2 | `14` |  | `public ProxyAsyncResponseProvider([NotNull] Func<RequestMessage, IProxyAndRecordSettings, Task<ResponseMessage>>`
| 2 | `15` |  | `{`
| 2 | `16` |  | `Check.NotNull(responseMessageFunc, nameof(responseMessageFunc));`
| 2 | `17` |  | `Check.NotNull(settings, nameof(settings));`
|  | `18` |  | ``
| 2 | `19` |  | `_responseMessageFunc = responseMessageFunc;`
| 2 | `20` |  | `_settings = settings;`
| 2 | `21` |  | `}`
|  | `22` |  | ``
|  | `23` |  | `public Task<ResponseMessage> ProvideResponseAsync(RequestMessage requestMessage)`
| 0 | `24` |  | `{`
| 0 | `25` |  | `return _responseMessageFunc(requestMessage, _settings);`
| 0 | `26` |  | `}`
|  | `27` |  | `}`
|  | `28` |  | `}`

# Methods/Properties

.ctor(System.Func`3<WireMock.RequestMessage,WireMock.Settings.IProxyAndRecordSettings,System.Threading.Tasks.Task`1<WireMock.ResponseMessage>>,WireMock.Settings.IProxyAndRecordSettings)
ProvideResponseAsync(WireMock.RequestMessage)