PageRenderTime 41ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/Source/Bifrost.Fakes/Events/v2/SimpleEvent.cs

#
C# | 20 lines | 16 code | 4 blank | 0 comment | 0 complexity | f30e3c56db275a2b4423e1e573ea4f75 MD5 | raw file
Possible License(s): CC-BY-SA-3.0
  1. using System;
  2. using Bifrost.Events;
  3. namespace Bifrost.Fakes.Events.v2
  4. {
  5. public class SimpleEvent : Events.SimpleEvent, IAmNextGenerationOf<Events.SimpleEvent>
  6. {
  7. public static string DEFAULT_VALUE_FOR_SECOND_GENERATION_PROPERTY = "2nd: DEFAULT";
  8. public string SecondGenerationProperty { get; set; }
  9. public SimpleEvent(Guid eventSourceId) : this(eventSourceId, Guid.NewGuid())
  10. {}
  11. public SimpleEvent(Guid eventSourceId, Guid id) : base(eventSourceId, id)
  12. {
  13. SecondGenerationProperty = DEFAULT_VALUE_FOR_SECOND_GENERATION_PROPERTY;
  14. }
  15. }
  16. }