Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created May 26, 2021 21:53
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save dcomartin/516e2e018b0c8d9a6b3ce0fb8304b985 to your computer and use it in GitHub Desktop.
[Fact]
public async Task Test()
{
var sku = Guid.NewGuid().ToString();
var sut = new GetProductBySkuHandlerDelegateExample(x => Task.FromResult(new Product { Sku = x }));
var result = await sut.Handle(new GetProductBySkuRequest(sku), CancellationToken.None);
result.Sku.ShouldBe(sku);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment