Sieve/SieveUnitTests/Services/SieveOptionsAccessor.cs

19 lines
382 B
C#
Raw Normal View History

using Microsoft.Extensions.Options;
using Sieve.Models;
namespace SieveUnitTests.Services
{
public class SieveOptionsAccessor : IOptions<SieveOptions>
{
2018-05-15 01:34:37 +02:00
public SieveOptions Value { get; }
public SieveOptionsAccessor()
{
2018-05-15 01:34:37 +02:00
Value = new SieveOptions()
{
ThrowExceptions = true
};
}
}
}