# Summary

Class: | WireMock.ResponseProviders.DynamicAsyncResponseProvider
Assembly: | WireMock.Net
File(s): | C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\ResponseProviders\DynamicAsyncResponseProvider.cs
Covered lines: | 0
Uncovered lines: | 8
Coverable lines: | 8
Total lines: | 24
Line coverage: | 0%

# Metrics

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

# File(s)

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

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

# Methods/Properties

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