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/GameServiceWarden.Tests/GameServiceWarden.Core.Tests/Modules/FakeServiceModule.cs

25 lines
750 B
C#
Raw Permalink Normal View History

using System.Collections.Generic;
2021-04-22 21:03:09 +00:00
using GameServiceWarden.ModuleFramework;
namespace GameServiceWarden.Core.Tests.Modules
{
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);
}
}
}