Skip to content

Instantly share code, notes, and snippets.

@yreynhout
yreynhout / EventStoreCollection.cs
Last active May 9, 2020 20:45
Recipe for an EventStoreFixture using Docker.DotNet
using Xunit;
namespace TheDukesOfDocker
{
[CollectionDefinition(nameof(EventStoreCollection))]
public class EventStoreCollection : ICollectionFixture<EventStoreFixture>
{
}
}
@yreynhout
yreynhout / Catch.cs
Last active April 17, 2020 14:32
Async Aggregate Source Command Handler Testing ... in a gist
using System;
using System.Threading.Tasks;
public static class Catch
{
public static async Task<Optional<Exception>> ExceptionAsync(Func<Task> action)
{
var result = Optional<Exception>.Empty;
try
{