PageRenderTime 47ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/Source/Bifrost.Specs/Events/for_EventMigrationHierarchy/when_getting_the_concrete_type_for_a_level.cs

#
C# | 22 lines | 19 code | 3 blank | 0 comment | 0 complexity | 45523f41990521cbc28b5696497dc087 MD5 | raw file
Possible License(s): CC-BY-SA-3.0
  1. using System;
  2. using Machine.Specifications;
  3. using v2 = Bifrost.Fakes.Events.v2;
  4. using v3 = Bifrost.Fakes.Events.v3;
  5. namespace Bifrost.Specs.Events.for_EventMigrationHierarchy
  6. {
  7. public class when_getting_the_concrete_type_for_a_level : given.an_event_migration_hierarchy_with_two_levels
  8. {
  9. static Type level_one_type;
  10. static Type level_two_type;
  11. Because of = () =>
  12. {
  13. level_one_type = event_migration_hierarchy.GetConcreteTypeForLevel(1);
  14. level_two_type = event_migration_hierarchy.GetConcreteTypeForLevel(2);
  15. };
  16. It should_get_the_correct_type_for_level_one = () => level_one_type.ShouldEqual(typeof(v2.SimpleEvent));
  17. It should_get_the_correct_type_for_level_two = () => level_two_type.ShouldEqual(typeof(v3.SimpleEvent));
  18. }
  19. }