PageRenderTime 41ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/Source/Bifrost.Specs/Events/for_EventSubscriptionRepository/when_getting_for_a_specific_event_type_and_there_are_two_subscriptions.cs

#
C# | 17 lines | 14 code | 3 blank | 0 comment | 0 complexity | d136667d6ff763e82d7d7da298838a6d MD5 | raw file
Possible License(s): CC-BY-SA-3.0
  1. using System.Collections.Generic;
  2. using System.Linq;
  3. using Bifrost.Events;
  4. using Bifrost.Fakes.Events;
  5. using Machine.Specifications;
  6. namespace Bifrost.Specs.Events.for_EventSubscriptionRepository
  7. {
  8. public class when_getting_for_a_specific_event_type_and_there_are_two_subscriptions_for_different_event_types : given.an_event_subscription_repository_with_two_subscriptions_for_different_event_types
  9. {
  10. static IEnumerable<EventSubscription> result;
  11. Because of = () => result = repository.GetForEvent(typeof(SimpleEvent));
  12. It should_return_one_event = () => result.Count().ShouldEqual(1);
  13. }
  14. }