PageRenderTime 26ms CodeModel.GetById 20ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/Source/Bifrost.Specs/Sagas/for_SagaConverter/given/a_saga_with_one_event.cs

#
C# | 18 lines | 15 code | 3 blank | 0 comment | 0 complexity | 73b161ee05ff42426252f6d4bede0725 MD5 | raw file
 1using System;
 2using Bifrost.Fakes.Events;
 3using Machine.Specifications;
 4
 5namespace Bifrost.Specs.Sagas.for_SagaConverter.given
 6{
 7	public class a_saga_with_one_event : a_saga_converter_and_a_saga
 8	{
 9		protected static SimpleEvent simple_event;
10
11		Establish context = () =>
12		                    	{
13		                    		simple_event = new SimpleEvent(Guid.NewGuid());
14		                    		saga.SetUncommittedEvents(new[] { simple_event });
15		                    	};
16
17	}
18}