using System; using System.Collections.Generic; using GameServiceWarden.InteractionAPI.Module; using GameServiceWarden.Core.Module; namespace GameServiceWarden.Core.Tests.Modules { public class FakeServiceManagerMonitor : IServiceManagerMonitor { public List states = new List(); public List deltas = new List(); public ServiceManagerTotal this[int i] { get { return states[i]; } } public void Present(ServiceManagerTotal state) { states.Add(state); } public void Present(ServiceManagerDelta delta) { deltas.Add(delta); } public ServiceManagerTotal GetLastState() { return states[states.Count - 1]; } public ServiceManagerDelta GetLastDelta() { return deltas[deltas.Count - 1]; } } }