IW4M-Admin/Tests/ApplicationTests/Mocks/ApplicationConfigurationHandlerMock.cs
RaidMax d3d1f31ee0 bugfixes/enhancements
prevent users from trying to set the console's level to owner
fix issue with setting multiple owners
update/improve unit tests
2020-05-16 11:54:01 -05:00

37 lines
879 B
C#

using SharedLibraryCore.Configuration;
using SharedLibraryCore.Interfaces;
using System;
using System.Threading.Tasks;
namespace ApplicationTests.Mocks
{
class ApplicationConfigurationHandlerMock : IConfigurationHandler<ApplicationConfiguration>
{
private readonly ApplicationConfiguration _appConfig;
public ApplicationConfigurationHandlerMock(ApplicationConfiguration configuration)
{
_appConfig = configuration;
}
public string FileName => "";
public void Build()
{
}
public ApplicationConfiguration Configuration() => _appConfig;
public Task Save()
{
throw new NotImplementedException();
}
public void Set(ApplicationConfiguration config)
{
throw new NotImplementedException();
}
}
}