Exemple #1
0
        public object RespondTo(string input)
        {
            int number        = Convert.ToInt32(input);
            var decomposition = Genius.Decompose(number);

            return(new DecompositionResponse
            {
                number = number,
                decomposition = decomposition
            });
        }
Exemple #2
0
 public void CanDecompose2()
 {
     Assert.That(einstein.Decompose(2), Is.EqualTo(new List <int> {
         2
     }));
 }