Files
Umbraco-CMS/tests/Umbraco.Tests.Common/TestOptionsSnapshot.cs
2021-10-18 08:29:43 +01:00

12 lines
308 B
C#

using Microsoft.Extensions.Options;
namespace Umbraco.Cms.Tests.Common
{
public class TestOptionsSnapshot<T> : IOptionsSnapshot<T> where T : class
{
public TestOptionsSnapshot(T value) => Value = value;
public T Value { get; }
public T Get(string name) => Value;
}
}