using System.Runtime.CompilerServices;
using SatelliteProvider.Api.Validators;

namespace SatelliteProvider.Tests.TestSupport;

internal static class ValidatorTestModuleInitializer
{
    // ModuleInitializer (.NET 5+) runs once per assembly load. We piggy-back the
    // production GlobalValidatorConfig.ApplyOnce() so unit tests assert against
    // the same FluentValidation property-name casing the live API produces.
    [ModuleInitializer]
    public static void Initialize()
    {
        GlobalValidatorConfig.ApplyOnce();
    }
}
