Пример #1
0
        public void TestGetNextValue()
        {
            int value1 = _valueServices.GetNextValue();
            int value2 = _valueServices.GetNextValue();
            int value3 = _valueServices.GetNextValue();

            Assert.Equal(1, value1);
            Assert.Equal(2, value2);
            Assert.Equal(3, value3);
        }
Пример #2
0
 public ActionResult <int> GetNextValue()
 {
     return(Ok(_valueServices.GetNextValue()));
 }