PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms 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
 1using System;
 2using Machine.Specifications;
 3using v2 = Bifrost.Fakes.Events.v2;
 4using v3 = Bifrost.Fakes.Events.v3;
 5
 6namespace Bifrost.Specs.Events.for_EventMigrationHierarchy
 7{
 8    public class when_getting_the_concrete_type_for_a_level : given.an_event_migration_hierarchy_with_two_levels
 9    {
10        static Type level_one_type;
11        static Type level_two_type;
12
13        Because of = () =>
14                         {
15                             level_one_type = event_migration_hierarchy.GetConcreteTypeForLevel(1);
16                             level_two_type = event_migration_hierarchy.GetConcreteTypeForLevel(2);
17                         };
18
19        It should_get_the_correct_type_for_level_one = () => level_one_type.ShouldEqual(typeof(v2.SimpleEvent));
20        It should_get_the_correct_type_for_level_two = () => level_two_type.ShouldEqual(typeof(v3.SimpleEvent));
21    }
22}