protected override void Given() { Repo = new GetEventStoreRepository("UnitTest", _connection); // ctor defaults to disabled Logging = new EventStoreMessageLogger(Bus, _connection, StreamName); Thread.Sleep(1000); }
protected override void Given() { base.Given(); // ctor defaults to disabled Logging = new EventStoreMessageLogger(Bus, EventStore.Connection, StreamName); Thread.Sleep(1000); }
protected override void Given() { Repo = new GetEventStoreRepository("UnitTest", _connection); // instantiate Logger class that inherits from QueuedSubscriber Logging = new EventStoreMessageLogger(Bus, _connection, StreamName, true); Thread.Sleep(2000); // needs a bit of time to set up the ES }
protected override void Given() { base.Given(); // instantiate Logger class that inherits from QueuedSubscriber Logging = new EventStoreMessageLogger(Bus, EventStore.Connection, StreamName, true); Thread.Sleep(2000); // needs a bit of time to set up the ES }
protected with_message_logging_disabled() { StreamNameBuilder = new PrefixedCamelCaseStreamNameBuilder("UnitTest"); EventSerializer = new JsonMessageSerializer(); Repo = new StreamStoreRepository(StreamNameBuilder, Connection, new JsonMessageSerializer()); // ctor defaults to disabled Logging = new EventStoreMessageLogger(Bus, Connection, StreamName); Thread.Sleep(1000); }
protected with_message_logging_enabled(IStreamStoreConnection connection) { Connection = connection; Bus = new Dispatcher(nameof(with_message_logging_enabled)); StreamNameBuilder = new PrefixedCamelCaseStreamNameBuilder("UnitTest"); EventSerializer = new JsonMessageSerializer(); Repo = new StreamStoreRepository(StreamNameBuilder, Connection, new JsonMessageSerializer()); // instantiate Logger class that inherits from QueuedSubscriber Logging = new EventStoreMessageLogger(Bus, Connection, StreamName, true); }