Add persisted runtime settings page with cookie login
This commit is contained in:
1 parent
b561924efa
commit
37987a394a
43 files changed
+1346
-61
No files matched your search
@@ -0,0 +1,14 @@
|
||||
using Microsoft.Extensions.Options;
|
||||
using NSubstitute;
|
||||
|
||||
namespace Flypaper.Tests;
|
||||
|
||||
internal static class TestOptions
|
||||
{
|
||||
public static IOptionsMonitor<T> Monitor<T>(T value) where T : class
|
||||
{
|
||||
var monitor = Substitute.For<IOptionsMonitor<T>>();
|
||||
monitor.CurrentValue.Returns(value);
|
||||
return monitor;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user