namespace e_suite.UnitTestCore;

public class TestEnvironment
{
    private string _baseUrl = string.Empty;

    public string BaseUrl
    {
        get => _baseUrl;
        set => _baseUrl = value.TrimEnd('/');
    }

    private string _apiUrl = string.Empty;
    public string APIUrl
    {
        get => _apiUrl;
        set => _apiUrl = value.TrimEnd('/');
    }

    public int ClickWaitSeconds { get; set; } = 60;

    public int DebounceDelayMilliseconds { get; set; } = 2500;

    public TimeSpan ClickWaitTime => TimeSpan.FromSeconds(ClickWaitSeconds);

    public string Username { get; set; } = "testuser1@sun-strategy.com";

    public string Password { get; set; } = "12345 Same as my luggage";

    public bool HeadlessMode { get; set; } = true;
    
    private string _testMailAppAPIKey = string.Empty;
    public string TestMailAppAPIKey { 
        get => _testMailAppAPIKey; 
        set => _testMailAppAPIKey = value; 
    }
    
    private string _testMailAppNamespace = string.Empty;
    public string TestMailAppNamespace {
        get => _testMailAppNamespace;
        set => _testMailAppNamespace = value; 
    }
}