Last active
August 29, 2015 14:00
-
-
Save yreynhout/11376695 to your computer and use it in GitHub Desktop.
Spiking Projac.Testing
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
[TestFixture] | |
public class SomeProjectionTests | |
{ | |
[Test] | |
public void HandlesSomeEventAsExpected() | |
{ | |
new TSqlProjectionScenario(TSqlProjection projection). //after renaming TSqlProjectionSpecification to TSqlProjection ;-) | |
Given(params object[] events). | |
Given(IEnumerable<object> events). | |
GivenNone(). | |
When(object @event). | |
ThenCount(TSqlQueryStatement query, int count). //or ExpectCount/VerifyCount | |
Assert(); // Extension method that executes the test specification (and knows the connection string). | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment