public EventSink(EventInitiator initiator) { Assert.IsNotNull(initiator); initiator.SimpleEvent += delegate { _simpleEventCalls.Inc(); }; }
protected Event(Models.Player initiator) { Initiator = new EventInitiator(initiator); Metadata = new EventMetadata { CreatedAt = DateTimeOffset.UtcNow.ToUnixTimeSeconds(), SourceAssembly = Assembly.GetEntryAssembly().FullName, }; }
public void SetUp() { _eventSink = new EventSink(_initiator = new EventInitiator()); }