Files
lmxopcua/tests/Client/ZB.MOM.WW.OtOpcUa.Client.UI.Tests/Fakes/FakeSettingsService.cs
Joseph Doherty bd6c0b4d3d docs: complete XML doc comments via fixdocs (2757 to 131 findings)
Add missing <returns>/<param>/<summary>/<typeparam> tags and clean up
misused inheritdoc across 481 files so the documented API surface is
complete. Documentation-only (zero code lines changed). The 131 remaining
findings are inheritdoc-style warnings deliberately left to preserve
hand-written implementation rationale (plan-decision notes, race-condition
explanations).
2026-06-03 12:34:34 -04:00

30 lines
922 B
C#

using ZB.MOM.WW.OtOpcUa.Client.UI.Services;
namespace ZB.MOM.WW.OtOpcUa.Client.UI.Tests.Fakes;
public sealed class FakeSettingsService : ISettingsService
{
/// <summary>Gets or sets the settings held by this fake service.</summary>
public UserSettings Settings { get; set; } = new();
/// <summary>Gets the number of times Load has been called.</summary>
public int LoadCallCount { get; private set; }
/// <summary>Gets the number of times Save has been called.</summary>
public int SaveCallCount { get; private set; }
/// <summary>Gets the last settings that were saved.</summary>
public UserSettings? LastSaved { get; private set; }
/// <inheritdoc />
public UserSettings Load()
{
LoadCallCount++;
return Settings;
}
/// <inheritdoc />
public void Save(UserSettings settings)
{
SaveCallCount++;
LastSaved = settings;
}
}