public void GivenThatMediaTypeIsPaperback_WhenMapping_ThenReturnedMediaTypeIsPaperback()
        {
            var mapper = new MediaTypeMapper();

            var mediaType = mapper.Map(MediaType.Paperback, new UrlHelper());

            Assert.AreEqual(AnApiOfIceAndFire.Models.v1.MediaType.Paperback, mediaType);
        }
        public void GivenThatMediaTypeIsGraphicNovel_WhenMapping_ThenReturnedMediaTypeIsGraphicNovel()
        {
            var mapper = new MediaTypeMapper();

            var mediaType = mapper.Map(MediaType.GraphicNovel, new UrlHelper());

            Assert.AreEqual(AnApiOfIceAndFire.Models.v1.MediaType.GraphicNovel, mediaType);
        }
예제 #3
0
        public void GivenThatMediaTypeIsPaperback_WhenMapping_ThenReturnedMediaTypeIsPaperback()
        {
            var mapper = new MediaTypeMapper();

            var mediaType = mapper.Map(MediaType.Paperback, new UrlHelper());

            Assert.AreEqual(AnApiOfIceAndFire.Models.v1.MediaType.Paperback, mediaType);
        }
예제 #4
0
        public void GivenThatMediaTypeIsGraphicNovel_WhenMapping_ThenReturnedMediaTypeIsGraphicNovel()
        {
            var mapper = new MediaTypeMapper();

            var mediaType = mapper.Map(MediaType.GraphicNovel, new UrlHelper());

            Assert.AreEqual(AnApiOfIceAndFire.Models.v1.MediaType.GraphicNovel, mediaType);
        }
        public void GivenThatMediaTypeIsHardcover_WhenMapping_ThenReturnedMediaTypeIsHardcover()
        {
            var mapper = new MediaTypeMapper();

            var mediaType = mapper.Map(MediaType.Hardcover, new UrlHelper());

            Assert.AreEqual(AnApiOfIceAndFire.Models.v0.MediaType.Hardcover, mediaType);
        }
        public void GivenThatMediaTypeIsHardcover_WhenMapping_ThenReturnedMediaTypeIsHardcover()
        {
            var mapper = new MediaTypeMapper();

            var mediaType = mapper.Map(MediaType.Hardcover, new UrlHelper());

            Assert.AreEqual(AnApiOfIceAndFire.Models.v0.MediaType.Hardcover, mediaType);
        }