💩 Include methods that throw NotSupportedExceptions for now

pull/104/head
Alexis Drai 3 years ago
parent e14f5e01a6
commit a0d3caf91c

@ -21,6 +21,11 @@ namespace Model.Dice
return diceGroups.AsEnumerable(); return diceGroups.AsEnumerable();
} }
public KeyValuePair<string, IEnumerable<AbstractDie<AbstractDieFace>>> GetOneByID(Guid ID)
{
throw new NotImplementedException();
}
public KeyValuePair<string, IEnumerable<AbstractDie<AbstractDieFace>>> GetOneByName(string name) public KeyValuePair<string, IEnumerable<AbstractDie<AbstractDieFace>>> GetOneByName(string name)
{ {
// les groupes de dés nommés : // les groupes de dés nommés :

@ -108,5 +108,10 @@ namespace Model.Games
game.PerformTurn(current); game.PerformTurn(current);
game.PrepareNextPlayer(current); game.PrepareNextPlayer(current);
} }
public Game GetOneByID(Guid ID)
{
throw new NotImplementedException();
}
} }
} }

@ -1,10 +1,12 @@
using System.Collections.Generic; using System;
using System.Collections.Generic;
namespace Model namespace Model
{ {
public interface IManager<T> public interface IManager<T>
{ {
public T Add(T toAdd); public T Add(T toAdd);
public T GetOneByName(string name); public T GetOneByName(string name);
public T GetOneByID(Guid ID);
public IEnumerable<T> GetAll(); public IEnumerable<T> GetAll();
public T Update(T before, T after); public T Update(T before, T after);
public void Remove(T toRemove); public void Remove(T toRemove);

@ -95,5 +95,10 @@ namespace Model.Players
// the built-in Remove() method will use our redefined Equals(), using Name only // the built-in Remove() method will use our redefined Equals(), using Name only
players.Remove(toRemove); players.Remove(toRemove);
} }
public Player GetOneByID(Guid ID)
{
throw new NotImplementedException();
}
} }
} }

Loading…
Cancel
Save