Skip to content

Instantly share code, notes, and snippets.

@SzymonPobiega
Created January 15, 2013 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SzymonPobiega/4538653 to your computer and use it in GitHub Desktop.
Save SzymonPobiega/4538653 to your computer and use it in GitHub Desktop.
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