Katheryne/Katheryne.Tests/Mocks/MockWeatherModule.cs

21 lines
442 B
C#
Raw Normal View History

2023-11-26 11:27:05 +08:00
using Katheryne.Abstractions;
namespace Katheryne.Tests.Mocks;
public class MockWeatherModule : IParamsModule
{
private readonly Dictionary<string, string> _param = new()
{
{ "temp", "20" },
{ "text", "晴" }
};
public string ModuleName => "weather";
public string this[string param] => _param[param];
public bool ContainsParam(string param)
{
return _param.ContainsKey(param);
}
}