EventFlow.TestHelpers 0.73.3933

A collection of test helpers used to help develop event and read model stores for EventFlow. Please
     note that this is an alpha initial release of the test helpers package and content is subject
     to change.

There is a newer version of this package available.
See the version list below for details.
Install-Package EventFlow.TestHelpers -Version 0.73.3933
dotnet add package EventFlow.TestHelpers --version 0.73.3933
<PackageReference Include="EventFlow.TestHelpers" Version="0.73.3933" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EventFlow.TestHelpers --version 0.73.3933
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

New: Configure JSON serialization:
```csharp
EventFlowOptions.New.
.ConfigureJson(json => json
.AddSingleValueObjects()
.AddConverter<SomeConverter>()
)
```
New: ASP.NET Core enhancements:
- New fluent configuration API for ASP.NET Core components:
`services.AddEventFlow(o => o.AddAspNetCore(c => {...}));` (old syntax
`AddAspNetCoreMetadataProviders` is now deprecated).
- `.RunBootstrapperOnHostStartup()` runs bootstrappers together with ASP.NET
host startup. Previously, this was done in `AddAspNetCoreMetadataProviders`
and led to some confusion.
- `.UseMvcJsonOptions()` adds EventFlow JSON configuration (see below) to ASP.NET Core,
so you can accept and return Single Value Objects as plain strings for example.
- `.Add{Whatever}Metadata()` configures specific metadata provider.
- `.AddUserClaimsMetadata(params string claimTypes)` configures the new claims metadata
provider (for auditing or "ChangedBy" in read models).
- `.UseLogging()` configures an adapter for Microsoft.Extensions.Logging
- `.UseModelBinding()` adds model binding support for Single Value Objects:
```csharp
[HttpGet("customers/{id}")]
public async Task<IActionResult> SingleValue(CustomerId id)
{
if (!ModelState.IsValid)
{
return BadRequest(ModelState);
}
```
Fix: ASP.NET Core `AddRequestHeadersMetadataProvider` doesn't throw when
HttpContext is null.
Fix: `ReadModelRepopulator` now correctly populates `IAmAsyncReadModelFor`

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.77.4077 46 12/10/2019
0.76.4014 227 10/19/2019
0.75.3970 58 9/12/2019
0.74.3948 98 7/1/2019
0.73.3933 87 6/11/2019
0.72.3914 97 5/28/2019
0.71.3834 113 4/17/2019
0.70.3824 220 4/11/2019
0.69.3772 136 2/12/2019
0.68.3728 180 12/3/2018
0.67.3697 303 10/14/2018
0.66.3673 169 9/28/2018
0.65.3664 164 9/22/2018
0.64.3598 187 8/27/2018
0.63.3581 258 8/7/2018
0.62.3569 459 7/5/2018
0.61.3524 194 6/26/2018
0.60.3490 244 6/18/2018
0.59.3396 224 5/23/2018
0.58.3377 237 5/13/2018
0.57.3359 235 4/30/2018
0.56.3328 284 4/24/2018
0.55.3323 248 4/24/2018
0.54.3261 270 2/25/2018
0.53.3204 274 1/25/2018
0.52.3178 256 11/2/2017
0.51.3155 278 10/25/2017
0.50.3124 255 10/21/2017
0.49.3031 489 9/7/2017
0.48.2937 555 7/11/2017