Deleted Conseil.cs + updated Monstre attributes to automatic property, removed backing field of them + removed not needed member initializer
continuous-integration/drone/push Build was killed Details

pull/32/head
ImNicolasTheDev 2 years ago
parent 3150ee3ada
commit 12172efa83

@ -16,13 +16,13 @@ public class Monstre
public List<string> CharacteristicsList
{
get; private init;
get; init;
}
public List<string> AppearanceList
{
get; private init;
get; init;
}
public Monstre(int id, string name, string danger, string desc, List<string> characList, List<string> appearList)

@ -23,6 +23,7 @@ namespace Model
public User(string pseudo, string nom, string prenom, string mdp, List<Monstre>? monstresVus = null)
{
if (string.IsNullOrWhiteSpace(pseudo) || string.IsNullOrWhiteSpace(nom) || string.IsNullOrWhiteSpace(prenom) || string.IsNullOrWhiteSpace(mdp))
{
throw new ArgumentException("Un User doit avoir un pseudo, un nom, un prénom et un mot de passe au minimum !");

Loading…
Cancel
Save