Skip to content

Instantly share code, notes, and snippets.

@KevinDJones
Last active November 14, 2018 14:42
Show Gist options
  • Save KevinDJones/0b3dead7a3b2a9d2e917e6599f0a9180 to your computer and use it in GitHub Desktop.
Save KevinDJones/0b3dead7a3b2a9d2e917e6599f0a9180 to your computer and use it in GitHub Desktop.
var clientMock = new Mock<DurableOrchestrationClientBase>();
var logMock = new Mock<ILogger>();
clientMock.Setup(context => context.StartNewAsync("O_SendEmail", It.IsAny<object>())).Returns(Task.FromResult(orchestrationId));
var result = await MyStarter.Run(requestMessage, this.clientMock.Object, this.logMock.Object);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment