/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
Possible License(s): CC-BY-SA-3.0
- using System;
- using Bifrost.Events;
- using Machine.Specifications;
-
- namespace Bifrost.Specs.Events.for_EventMigrationHierarchyManager
- {
- public class when_getting_the_logical_type_for_an_event_that_is_unregistered : given.an_event_migration_hierarchy_manager_with_two_logical_events
- {
- static Exception exception;
-
- Because of = () =>
- {
- exception = Catch.Exception(() => event_migration_hierarchy_manager.GetLogicalTypeForEvent(typeof(Event)));
- };
-
- It should_throw_an_unregistered_event_exception = () => exception.ShouldBeOfType(typeof(UnregisteredEventException));
- }
- }