Merge pull request '💩 Include methods that throw NotSupportedExceptions for now' (#101) from fix-#89 into main
continuous-integration/drone/push Build is passing Details

Reviewed-on: #101
pull/102/head
Alexis Drai 3 years ago
commit 6d418735d7

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

@ -108,5 +108,10 @@ namespace Model.Games
game.PerformTurn(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
{
public interface IManager<T>
{
public T Add(T toAdd);
public T GetOneByName(string name);
public T GetOneByID(Guid ID);
public IEnumerable<T> GetAll();
public T Update(T before, T after);
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
players.Remove(toRemove);
}
public Player GetOneByID(Guid ID)
{
throw new NotImplementedException();
}
}
}

Loading…
Cancel
Save