Skip to content

Instantly share code, notes, and snippets.

@JefClaes
Created November 16, 2014 12:06
Show Gist options
  • Select an option

  • Save JefClaes/1c53c3ab0e5bc19438f8 to your computer and use it in GitHub Desktop.

Select an option

Save JefClaes/1c53c3ab0e5bc19438f8 to your computer and use it in GitHub Desktop.
streamIsHot test
[<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