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/FakeServiceManagerMonitor.cs

28 lines
706 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using GameServiceWarden.API.Games;
using GameServiceWarden.Core.Games;
namespace GameServiceWarden.Core.Tests.Modules.Games
{
public class FakeServiceManagerMonitor : IServiceManagerMonitor
{
public List<ServiceManagerState> states = new List<ServiceManagerState>();
public ServiceManagerState this[int i]
{
get
{
return states[i];
}
}
public void Present(ServiceManagerState state)
{
states.Add(state);
}
public ServiceManagerState GetLastState()
{
return states[states.Count - 1];
}
}
}