using ZB.MOM.WW.OtOpcUa.Client.UI.Services;

namespace ZB.MOM.WW.OtOpcUa.Client.UI.Tests.Fakes;

public sealed class FakeSettingsService : ISettingsService
{
    public UserSettings Settings { get; set; } = new();
    public int LoadCallCount { get; private set; }
    public int SaveCallCount { get; private set; }
    public UserSettings? LastSaved { get; private set; }

    public UserSettings Load()
    {
        LoadCallCount++;
        return Settings;
    }

    public void Save(UserSettings settings)
    {
        SaveCallCount++;
        LastSaved = settings;
    }
}
