/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

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