예제 #1
0
        public void PostChampionTest()
        {
            var champion = new Champion();

            champion.Name       = "Akali";
            champion.Difficulty = 3;
            champion.Class      = "Slayer";
            var result = controller.PostChampion(champion) as OkNegotiatedContentResult <Champion>;

            Assert.IsNotNull(result);
            Assert.AreEqual(result.Content.Name, champion.Name);
        }