PageRenderTime 41ms CodeModel.GetById 16ms RepoModel.GetById 0ms 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
Possible License(s): CC-BY-SA-3.0
  1. using System;
  2. using Bifrost.Fakes.Events;
  3. using Machine.Specifications;
  4. namespace Bifrost.Specs.Sagas.for_SagaConverter.given
  5. {
  6. public class a_saga_with_one_event : a_saga_converter_and_a_saga
  7. {
  8. protected static SimpleEvent simple_event;
  9. Establish context = () =>
  10. {
  11. simple_event = new SimpleEvent(Guid.NewGuid());
  12. saga.SetUncommittedEvents(new[] { simple_event });
  13. };
  14. }
  15. }