PageRenderTime 44ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/Source/Bifrost.Specs/Events/for_EventSource/when_checking_if_stateless_on_a_stateless_event_source.cs

#
C# | 15 lines | 12 code | 3 blank | 0 comment | 0 complexity | d6e24873f25a51ec343eb2e1873c03e4 MD5 | raw file
Possible License(s): CC-BY-SA-3.0
  1. using Bifrost.Events;
  2. using Machine.Specifications;
  3. namespace Bifrost.Specs.Events.for_EventSource
  4. {
  5. [Subject(typeof(EventSourceExtensions))]
  6. public class when_checking_if_stateless_on_a_stateless_event_source : given.a_stateless_event_source
  7. {
  8. static bool is_stateless;
  9. Because of = () => is_stateless = event_source.IsStateless();
  10. It should_not_be_stateless = () => is_stateless.ShouldBeTrue();
  11. }
  12. }