public void TestGetOddOrEven(int value, string result)
        {
            string oddOrEven = _valueServices.GetOddOrEven(value);

            Assert.Equal(result, oddOrEven);
        }
Exemple #2
0
 public ActionResult <string> GetOddOrEven(int value)
 {
     return(Ok(_valueServices.GetOddOrEven(value)));
 }