IW4M-Admin/Tests/ApplicationTests/Fixtures/EventGenerators.cs

27 lines
709 B
C#
Raw Normal View History

using SharedLibraryCore;
using System;
namespace ApplicationTests.Fixtures
{
static class EventGenerators
{
public static GameEvent GenerateEvent(GameEvent.EventType type, string data, Server owner)
{
switch (type)
{
case GameEvent.EventType.Command:
return new GameEvent
{
Origin = ClientGenerators.CreateDatabaseClient(),
Data = data,
Message = data,
Owner = owner
};
default:
throw new NotImplementedException();
}
}
}
}