PageRenderTime 14ms CodeModel.GetById 7ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

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