Exemplo n.º 1
0
        public void MapBOToModel()
        {
            var          mapper = new BOLLinkStatusMapper();
            BOLinkStatus bo     = new BOLinkStatus();

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

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
        }
Exemplo n.º 2
0
        public void MapBOToModelList()
        {
            var          mapper = new BOLLinkStatusMapper();
            BOLinkStatus bo     = new BOLinkStatus();

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

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