/Source/Bifrost.Specs/Events/for_EventMigrationHierarchyManager/when_getting_the_logical_type_for_an_event_within_a_migration_hierarchy.cs
C# | 17 lines | 14 code | 3 blank | 0 comment | 0 complexity | c6edd15da49ec0956c9e064a17b70ee2 MD5 | raw file
Possible License(s): CC-BY-SA-3.0
- using System;
- using Machine.Specifications;
-
- namespace Bifrost.Specs.Events.for_EventMigrationHierarchyManager
- {
- public class when_getting_the_logical_type_for_an_event_within_a_migration_hierarchy : given.an_event_migration_hierarchy_manager_with_two_logical_events
- {
- static Type logical_type;
-
- Because of = () =>
- {
- logical_type = event_migration_hierarchy_manager.GetLogicalTypeForEvent(typeof(Fakes.Events.v3.SimpleEvent));
- };
-
- It should_return_the_correct_logical_type_for_the_event_hierachy = () => logical_type.ShouldEqual(typeof(Fakes.Events.SimpleEvent));
- }
- }