using System; using PixiEditor.Models.UserPreferences; namespace PixiEditorTests.Mocks { public class PreferenceSettingsMock : IPreferences { public void AddCallback(string setting, Action action) { } public void AddCallback(string name, Action action) { } #nullable enable public T? GetLocalPreference(string name) { return default; } public T? GetLocalPreference(string name, T? fallbackValue) { return fallbackValue; } public T? GetPreference(string name) { return default; } public T? GetPreference(string name, T? fallbackValue) { return fallbackValue; } #nullable disable public void Init() { } public void Init(string path, string localPath) { } public void Save() { } public void UpdateLocalPreference(string name, T value) { } public void UpdatePreference(string name, T value) { } } }