private static async Task CheckBrokerRetries() { var logger = new LogToConsole(); var cqrsEngine = new CqrsFake(new CqrsSettings { ConnectionString = "rabbit connstr here", ContextNames = new CqrsContextNamesSettings(), EnvironmentName = "andreev", RetryDelay = TimeSpan.FromSeconds(5), }, logger).CreateEngine(); logger.WriteLine("waiting 5 sec for cqrsEngine"); Thread.Sleep(5000); cqrsEngine.PublishEvent(new AccountChangedEvent( DateTime.UtcNow, "tetest1", new AccountContract(), AccountChangedEventTypeContract.BalanceUpdated, new AccountBalanceChangeContract( "tetetetest1", DateTime.UtcNow, Enumerable.Repeat("t", 200).Aggregate((f, s) => $"{f}{s}"),//field has length of 64 "tetest1", 1, 1, 10000, "tetest1", AccountBalanceChangeReasonTypeContract.Manual, "tetest1", "tetest1", "tetest1", "tetest1", DateTime.MinValue ), null, null), new CqrsContextNamesSettings().AccountsManagement); }