public void ShouldSetEtatFaite() { var idee = new Idee(); idee.SetEtatFaite(); idee.EtatIdee.Should().Be(EtatsIdees.Faite); }
public void ShouldSetEtatFaiteMarkAsModified() { var idee = new Idee(); idee.SetEtatFaite(); idee.IsModified().Should().BeTrue(); }
public static void SetEtatBasedOnEmotes(this Idee idee, List<IEmote> reactionLists) { var ideeContext = new BoiteAIdee(); if (reactionLists.Any(r => r.Name == ideeContext.EmoteEtatTermine.Name)) { idee.SetEtatFaite(); } else if (reactionLists.Any(r => r.Name == ideeContext.EmoteEtatRejete.Name)) { idee.SetEtatRejetee(); } else if (reactionLists.Any(r => r.Name == ideeContext.EmoteEtatEnCours.Name)) { idee.SetEtatEnCours(); } }