-
-
Save dcomartin/516e2e018b0c8d9a6b3ce0fb8304b985 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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