Пример #1
0
        public void MapBOToModel()
        {
            var         mapper = new BOLLinkTypesMapper();
            BOLinkTypes bo     = new BOLinkTypes();

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

            response.Id.Should().Be(1);
            response.Type.Should().Be("A");
        }
Пример #2
0
        public void MapBOToModelList()
        {
            var         mapper = new BOLLinkTypesMapper();
            BOLinkTypes bo     = new BOLinkTypes();

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

            response.Count.Should().Be(1);
        }