Harrison Deng
35a2765559
Implemented LRUCache for instantiating services without starting. Service state changed back to enumerator. Namespace refactoring.
25 lines
751 B
C#
25 lines
751 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)
|
|
{
|
|
return new FakeService(configurables);
|
|
}
|
|
}
|
|
} |