Example #1
0
        public void GetTeleTextWithId()
        {
            // Set up Prerequisites
            var controller = new TeleTextController();

            controller.Request       = new HttpRequestMessage();
            controller.Configuration = new HttpConfiguration();
            var id = 1;
            // Act on Test
            var response = controller.Get(id);

            // Assert the result

            Assert.AreEqual("TeleText" + id, response);
        }
Example #2
0
        public void GetTeleText()
        {
            // Set up Prerequisites
            var controller = new TeleTextController();

            controller.Request       = new HttpRequestMessage();
            controller.Configuration = new HttpConfiguration();
            var id = 1;
            // Act on Test
            var response = controller.Get();

            // Assert the result
            foreach (var line in response)
            {
                Assert.AreEqual("TeleText" + id, line);
                id++;
            }
        }