Created
January 15, 2013 13:30
-
-
Save SzymonPobiega/4538653 to your computer and use it in GitHub Desktop.
Why I _love_ event sourcing
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
[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