예제 #1
0
        public void ShouldSetEtatFaite()
        {
            var idee = new Idee();

            idee.SetEtatFaite();

            idee.EtatIdee.Should().Be(EtatsIdees.Faite);
        }
예제 #2
0
        public void ShouldSetEtatFaiteMarkAsModified()
        {
            var idee = new Idee();

            idee.SetEtatFaite();

            idee.IsModified().Should().BeTrue();
        }
예제 #3
0
 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();
     }
 }