PageRenderTime 97ms CodeModel.GetById 88ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

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

#
C# | 18 lines | 15 code | 3 blank | 0 comment | 0 complexity | 1948aa27833b9a783ffa8f2e20dcf2cb 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_logical_type_for_an_event_that_is_unregistered : given.an_event_migration_hierarchy_manager_with_two_logical_events
 8    {
 9        static Exception exception;
10
11        Because of = () =>
12        {
13            exception = Catch.Exception(() => event_migration_hierarchy_manager.GetLogicalTypeForEvent(typeof(Event)));
14        };
15
16        It should_throw_an_unregistered_event_exception = () => exception.ShouldBeOfType(typeof(UnregisteredEventException));
17    }
18}