using Febe.Desktop.Core;
namespace Febe.Tests.Windows.Support;
internal static class TestZones
{
///
/// A fixed-offset zone where it is between 12:00 and 13:00 now: inside the active window of every caution profile,
/// whatever the hour of the test.
///
public static TimeZoneInfo Noon()
{
var offset = 12 - DateTimeOffset.UtcNow.Hour;
return TimeZoneInfo.CreateCustomTimeZone("Febe/Mezzogiorno", TimeSpan.FromHours(offset), "Mezzogiorno di prova", "Mezzogiorno di prova");
}
}
/// The registry values «CartellaDati» and «NuovaCartellaDati», in memory.
internal sealed class MemoryLocations : IDataFolderLocationStore
{
public string? Current { get; private set; }
public string? Pending { get; private set; }
public void SetCurrent(string? folder) => Current = folder;
public void SetPending(string? folder) => Pending = folder;
}