PageRenderTime 12ms CodeModel.GetById 9ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Source/Bifrost.Specs/Events/for_EventMigrationManager/when_migrating_an_event_that_is_first_generation.cs

#
C# | 17 lines | 14 code | 3 blank | 0 comment | 0 complexity | 85edfa8d67fe15852da9545bcf99ddb7 MD5 | raw file
 1using Bifrost.Events;
 2using Bifrost.Specs.Events.for_EventMigrationManager.given;
 3using Bifrost.Specs.Events.for_EventMigrationService.given;
 4using Machine.Specifications;
 5using It = Machine.Specifications.It;
 6
 7namespace Bifrost.Specs.Events.for_EventMigrationService
 8{
 9    class when_migrating_an_event_that_is_first_generation : an_event_migrator_service_with_no_registered_migrators
10    {
11        static IEvent result;
12
13        Because of = () => result = event_migrator_manager.Migrate(source_event);
14
15        It should_return_the_same_instance_of_the_event = () => result.ShouldBeTheSameAs(source_event);
16    }
17}