/Source/Bifrost.Specs/Events/for_EventMigrationHierarchyManager/when_getting_the_current_migration_level_for_an_unregistered_event.cs

# · C# · 20 lines · 17 code · 3 blank · 0 comment · 0 complexity · afc5683e091fb6a4f4c51eb5f0b75c91 MD5 · raw file

  1. using System;
  2. using Bifrost.Events;
  3. using Machine.Specifications;
  4. namespace Bifrost.Specs.Events.for_EventMigrationHierarchyManager
  5. {
  6. public class when_getting_the_current_migration_level_for_an_unregistered_event : given.an_event_migration_hierarchy_manager_with_two_logical_events
  7. {
  8. static Exception exception;
  9. Because of = () =>
  10. {
  11. exception = Catch.Exception(() =>
  12. event_migration_hierarchy_manager.GetCurrentMigrationLevelForLogicalEvent(typeof(Event))
  13. );
  14. };
  15. It should_throw_an_unregistered_event_exception = () => exception.ShouldBeOfType(typeof(UnregisteredEventException));
  16. }
  17. }