добавлен бэкенд тест

This commit is contained in:
2025-02-05 14:50:07 +03:00
parent cc5c595948
commit 5e805a28b0
31 changed files with 173 additions and 366 deletions
@@ -0,0 +1,24 @@
using mROA.Abstract;
namespace mROA.Implementation.Bootstrap;
public interface IBootstrap
{
void Build();
}
public class ServerBootstrap : IBootstrap
{
public List<IInjectableModule> Modules { get; private set; } = new();
public void Build()
{
foreach (var module in Modules)
foreach (var injection in Modules)
module.Inject(injection);
}
public T GetModule<T>()
{
return Modules.OfType<T>().FirstOrDefault();
}
}