PageRenderTime 18ms CodeModel.GetById 13ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/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
 1using System;
 2using Machine.Specifications;
 3
 4namespace Bifrost.Specs.Events.for_EventMigrationHierarchyManager
 5{
 6    public class when_getting_the_logical_type_for_an_event_within_a_migration_hierarchy : given.an_event_migration_hierarchy_manager_with_two_logical_events
 7    {
 8        static Type logical_type;
 9
10        Because of = () =>
11                         {
12                             logical_type = event_migration_hierarchy_manager.GetLogicalTypeForEvent(typeof(Fakes.Events.v3.SimpleEvent));
13                         };
14
15        It should_return_the_correct_logical_type_for_the_event_hierachy = () => logical_type.ShouldEqual(typeof(Fakes.Events.SimpleEvent));
16    }
17}