public void ShouldSetEtatEnCours() { var idee = new Idee(); idee.SetEtatEnCours(); idee.EtatIdee.Should().Be(EtatsIdees.EnCours); }
public void ShouldSetEtatEnCoursMarkAsModified() { var idee = new Idee(); idee.SetEtatEnCours(); idee.IsModified().Should().BeTrue(); }
public void ShouldSetSameEtatNotMarkAsModified() { var idee = new Idee { EtatIdee = EtatsIdees.EnCours, }; idee.SetEtatEnCours(); idee.IsModified().Should().BeFalse(); }
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(); } }