2020-04-21 18:34:00 -04:00
|
|
|
|
using IW4MAdmin.Application.RconParsers;
|
|
|
|
|
using SharedLibraryCore.Configuration;
|
|
|
|
|
using SharedLibraryCore.Interfaces;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace ApplicationTests.Fixtures
|
|
|
|
|
{
|
|
|
|
|
public class ConfigurationGenerators
|
|
|
|
|
{
|
|
|
|
|
public static ServerConfiguration CreateServerConfiguration() => new ServerConfiguration() { IPAddress = "127.0.0.1", Port = 28960 };
|
|
|
|
|
public static IRConParserConfiguration CreateRConParserConfiguration(IParserRegexFactory factory) => new DynamicRConParserConfiguration(factory)
|
|
|
|
|
{
|
|
|
|
|
CommandPrefixes = new SharedLibraryCore.RCon.CommandPrefix()
|
|
|
|
|
{
|
|
|
|
|
Kick = "kick",
|
|
|
|
|
Say = "say"
|
|
|
|
|
}
|
|
|
|
|
};
|
2020-08-20 11:38:11 -04:00
|
|
|
|
public static ApplicationConfiguration CreateApplicationConfiguration() => new ApplicationConfiguration() { Servers = new[] { CreateServerConfiguration() }, QuickMessages = new QuickMessageConfiguration[0] };
|
2020-05-16 12:54:01 -04:00
|
|
|
|
public static CommandConfiguration CreateCommandConfiguration() => new CommandConfiguration();
|
2020-04-21 18:34:00 -04:00
|
|
|
|
}
|
|
|
|
|
}
|