/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
- using System;
- using Bifrost.Events;
- using Machine.Specifications;
-
- namespace Bifrost.Specs.Events.for_EventMigrationHierarchyManager
- {
- public class when_getting_the_current_migration_level_for_an_unregistered_event : given.an_event_migration_hierarchy_manager_with_two_logical_events
- {
- static Exception exception;
-
- Because of = () =>
- {
- exception = Catch.Exception(() =>
- event_migration_hierarchy_manager.GetCurrentMigrationLevelForLogicalEvent(typeof(Event))
- );
- };
-
- It should_throw_an_unregistered_event_exception = () => exception.ShouldBeOfType(typeof(UnregisteredEventException));
- }
- }