﻿using NServiceBus;

public static class ConfigBuilder
{
    public static EndpointConfiguration BuildDefaultConfig(string endpointName)
    {
        var configuration = new EndpointConfiguration(endpointName);
        configuration.SendFailedMessagesTo("error");
        configuration.UsePersistence<InMemoryPersistence>();
        configuration.UseTransport<LearningTransport>();
        configuration.PurgeOnStartup(true);
        var recoverability = configuration.Recoverability();
        recoverability.Delayed(
            customizations: settings =>
            {
                settings.NumberOfRetries(0);
            });
        recoverability.Immediate(
            customizations: settings =>
            {
                settings.NumberOfRetries(0);
            });
        return configuration;
    }
}
﻿using NServiceBus;

public static class ConfigBuilder
{
    public static EndpointConfiguration BuildDefaultConfig(string endpointName)
    {
        var configuration = new EndpointConfiguration(endpointName);
        configuration.SendFailedMessagesTo("error");
        configuration.UsePersistence<InMemoryPersistence>();
        configuration.UseTransport<LearningTransport>();
        configuration.PurgeOnStartup(true);
        return configuration;
    }
}
Revert "disable retries in tests"
Revert "disable retries in tests"

This reverts commit 4875687e65609b0c13edf8d236a7e88d351d39ca.
