using System; using Microsoft.Extensions.Options; namespace Umbraco.Cms.Tests.Common; public class TestOptionsMonitor : IOptionsMonitor where T : class { public TestOptionsMonitor(T currentValue) => CurrentValue = currentValue; public T Get(string name) => CurrentValue; public IDisposable OnChange(Action listener) => null; public T CurrentValue { get; } }