PageRenderTime 6ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 2ms 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
 1using System;
 2using Bifrost.Events;
 3
 4namespace Bifrost.Fakes.Events.v2
 5{
 6    public class SimpleEvent : Events.SimpleEvent, IAmNextGenerationOf<Events.SimpleEvent>
 7    {
 8        public static string DEFAULT_VALUE_FOR_SECOND_GENERATION_PROPERTY = "2nd: DEFAULT";
 9
10        public string SecondGenerationProperty { get; set; }
11
12        public SimpleEvent(Guid eventSourceId) : this(eventSourceId, Guid.NewGuid())
13        {}
14
15        public SimpleEvent(Guid eventSourceId, Guid id) : base(eventSourceId, id)
16        {
17            SecondGenerationProperty = DEFAULT_VALUE_FOR_SECOND_GENERATION_PROPERTY;
18        }
19    }
20}