mirror of
https://github.com/Biarity/Sieve.git
synced 2024-11-22 21:42:38 +01:00
30 lines
565 B
C#
30 lines
565 B
C#
using Microsoft.Extensions.Options;
|
|
using Sieve.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace SieveUnitTests
|
|
{
|
|
public class SieveOptionsAccessor : IOptions<SieveOptions>
|
|
{
|
|
private SieveOptions _value;
|
|
|
|
public SieveOptions Value
|
|
{
|
|
get
|
|
{
|
|
return _value;
|
|
}
|
|
}
|
|
|
|
public SieveOptionsAccessor()
|
|
{
|
|
_value = new SieveOptions()
|
|
{
|
|
ThrowExceptions = true
|
|
};
|
|
}
|
|
}
|
|
}
|