/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
- using System;
- using Bifrost.Events;
-
- namespace Bifrost.Fakes.Events.v2
- {
- public class SimpleEvent : Events.SimpleEvent, IAmNextGenerationOf<Events.SimpleEvent>
- {
- public static string DEFAULT_VALUE_FOR_SECOND_GENERATION_PROPERTY = "2nd: DEFAULT";
-
- public string SecondGenerationProperty { get; set; }
-
- public SimpleEvent(Guid eventSourceId) : this(eventSourceId, Guid.NewGuid())
- {}
-
- public SimpleEvent(Guid eventSourceId, Guid id) : base(eventSourceId, id)
- {
- SecondGenerationProperty = DEFAULT_VALUE_FOR_SECOND_GENERATION_PROPERTY;
- }
- }
- }