Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Why I _love_ event sourcing
[Test]
public void After_successfully_deploying_a_component_it_triggers_its_start()
{
Given("id",
Created(),
LockRequested(),
Locked(),
VersionDetermined(),
DeploymentPlanned("A", "1"),
DeploymentPlanned("B", "2"),
DeploymentRequested("A", "1", "opId"))
.When(x => x.HandleDeploySuccess("opId", "deplId", new FakeUniqueIdGenerator("id")))
.Then(
DeploymentSucceeded(),
StartRequested("1", "deplId"));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment