示例#1
0
        public void GetAllAnimalStoryDetailsByIdValidInput()
        {
            var animalStory = animalsController.GetAllAnimalStoryDetailsById(1);

            Assert.AreEqual(2, animalStory.Count());

            var story = animalStory.First();

            Assert.AreEqual(1, story.animalStoryId);
            Assert.AreEqual("גילי הבבון", story.name);
            Assert.AreEqual(1, story.language);

            story = animalStory.Last();
            Assert.AreEqual(1, story.animalStoryId);
            Assert.AreEqual("Gili the olive baboon", story.name);
            Assert.AreEqual(2, story.language);
        }