public object RespondTo(string input) { int number = Convert.ToInt32(input); var decomposition = Genius.Decompose(number); return(new DecompositionResponse { number = number, decomposition = decomposition }); }
public void CanDecompose2() { Assert.That(einstein.Decompose(2), Is.EqualTo(new List <int> { 2 })); }