28 lines
		
	
	
		
			708 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			708 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using System;
 | 
						|
using System.Collections.Generic;
 | 
						|
using GameServiceWarden.ClientAPI.Module;
 | 
						|
using GameServiceWarden.Core.Module;
 | 
						|
 | 
						|
namespace GameServiceWarden.Core.Tests.Modules
 | 
						|
{
 | 
						|
    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];
 | 
						|
        }
 | 
						|
    }
 | 
						|
} |