Example #1
0
        public void MapBOToModel()
        {
            var     mapper = new BOLProxyMapper();
            BOProxy bo     = new BOProxy();

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

            response.Id.Should().Be("A");
            response.JSON.Should().Be("A");
            response.Name.Should().Be("A");
        }
Example #2
0
        public void MapBOToModelList()
        {
            var     mapper = new BOLProxyMapper();
            BOProxy bo     = new BOProxy();

            bo.SetProperties("A", "A", "A");
            List <ApiProxyResponseModel> response = mapper.MapBOToModel(new List <BOProxy>()
            {
                { bo }
            });

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