Ejemplo n.º 1
0
        public void MapBOToModelList()
        {
            var    mapper = new BOLTagsMapper();
            BOTags bo     = new BOTags();

            bo.SetProperties(1, 1, 1, "A", 1);
            List <ApiTagsResponseModel> response = mapper.MapBOToModel(new List <BOTags>()
            {
                { bo }
            });

            response.Count.Should().Be(1);
        }
Ejemplo n.º 2
0
        public void MapBOToModel()
        {
            var    mapper = new BOLTagsMapper();
            BOTags bo     = new BOTags();

            bo.SetProperties(1, 1, 1, "A", 1);
            ApiTagsResponseModel response = mapper.MapBOToModel(bo);

            response.Count.Should().Be(1);
            response.ExcerptPostId.Should().Be(1);
            response.Id.Should().Be(1);
            response.TagName.Should().Be("A");
            response.WikiPostId.Should().Be(1);
        }
Ejemplo n.º 3
0
        public void MapBOToEF()
        {
            var mapper = new DALTagsMapper();
            var bo     = new BOTags();

            bo.SetProperties(1, 1, 1, "A", 1);

            Tags response = mapper.MapBOToEF(bo);

            response.Count.Should().Be(1);
            response.ExcerptPostId.Should().Be(1);
            response.Id.Should().Be(1);
            response.TagName.Should().Be("A");
            response.WikiPostId.Should().Be(1);
        }