public static ENodeConfiguration UseEventStore(this ENodeConfiguration enodeConfiguration, bool useMockEventStore = false) { var configuration = enodeConfiguration.GetCommonConfiguration(); if (useMockEventStore) { configuration.SetDefault <IEventStore, MockEventStore>(); } else { enodeConfiguration.UseSqlServerEventStore(); } return(enodeConfiguration); }