Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
internal class StubPublisher : IPublishProductInformation
{
public Dictionary<int, Product> PublishedProducts = new Dictionary<int, Product>();
public async Task Publish(Product productInformation)
{
PublishedProducts.Add(productInformation.ProductId,
productInformation);
await Task.CompletedTask;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.