Пример #1
0
        public IHttpActionResult Get(string sentence)
        {
            var result = _wordsService.ReverseWordsInSentence(sentence);

            return(Ok(result));
        }
Пример #2
0
        public void TestReverseWordsInSentence()
        {
            var result = _subject.ReverseWordsInSentence("this is a test sentence");

            Assert.AreEqual("siht si a tset ecnetnes", result);
        }