Created
November 16, 2014 12:06
-
-
Save JefClaes/1c53c3ab0e5bc19438f8 to your computer and use it in GitHub Desktop.
streamIsHot test
This file contains hidden or 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>] | |
| member this.``Given a hot aggregate, a hot aggregate will be detected``() = | |
| let treshold = 4 | |
| let secondsInWindow = 5 | |
| let eventStream = createEventStream [0; 1; 2; 10; 11; 12; 13; 14; 60; 90] | |
| streamIsHot eventStream treshold secondsInWindow |> should equal true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment