This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
gameservicewarden/tests/GameServiceWarden.Core.Tests/Modules/Games/FakeServiceModule.cs
Harrison Deng dfc54fdc00 Implemented IPC system with minimal testing.
Large naming refactoring.

Added some more tests.
2021-04-08 21:36:08 -05:00

25 lines
763 B
C#

using System.Collections.Generic;
using GameServiceWarden.API.Module;
namespace GameServiceWarden.Core.Tests.Modules.Games
{
public class FakeServiceModule : IServiceModule
{
public string Name => "FakeModule";
public string Description => "A fake module for testing.";
private IServiceConfigurable[] configurables;
public FakeServiceModule(params IServiceConfigurable[] configurables)
{
this.configurables = configurables;
}
public IEnumerable<string> Authors { get; private set; } = new string[] { "FakeAuthor", "FakeAuthor2" };
public IService InstantiateService(string workspace, bool clean)
{
return new FakeService(configurables);
}
}
}