view MockObjects/MockWarFoundryLoader.cs @ 110:788ef54f5b5a

Re #27: Define unit requirements * Add last unit test to get more obvious behaviour equivalent to Rollcall's "-1" (can take unlimited X once one Y is taken)
author IBBoard <dev@ibboard.co.uk>
date Tue, 29 Mar 2011 19:51:08 +0000
parents 4211c818ef96
children
line wrap: on
line source

using System;
using IBBoard.WarFoundry.API;
using IBBoard.WarFoundry.API.Objects;

namespace IBBoard.WarFoundry.MockObjects
{
	public class MockWarFoundryLoader : AbstractWarFoundryLoader
	{
		protected override GameSystem GetExistingSystemForSystem(GameSystem system)
		{
			return system;
		}

		protected override void DoStoreGameSystem(GameSystem system)
		{
			//Do nothing
		}

		protected override void DoStoreRace(Race race)
		{
			//Do nothing
		}

		public override GameSystem[] GetGameSystems()
		{
			return new GameSystem[0];
		}

		public override GameSystem GetGameSystem(string systemID)
		{
			return null;
		}

		protected override void RemoveGameSystem(GameSystem system)
		{
			//Do nothing
		}

		public override Race[] GetRaces(GameSystem system)
		{
			return new Race[0];
		}

		public override Race GetRace(GameSystem system, string raceID)
		{
			return null;
		}

		public override Race GetRace(GameSystem system, string raceID, string raceSubID)
		{
			return null;
		}

		protected override void RemoveRace(Race race)
		{
			//Do nothing
		}
	}
}