Example #1
0
        public void MapEFToBO()
        {
            var   mapper = new DALProxyMapper();
            Proxy entity = new Proxy();

            entity.SetProperties("A", "A", "A");

            BOProxy response = mapper.MapEFToBO(entity);

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

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

            Proxy response = mapper.MapBOToEF(bo);

            response.Id.Should().Be("A");
            response.JSON.Should().Be("A");
            response.Name.Should().Be("A");
        }
Example #3
0
        public void MapEFToBOList()
        {
            var   mapper = new DALProxyMapper();
            Proxy entity = new Proxy();

            entity.SetProperties("A", "A", "A");

            List <BOProxy> response = mapper.MapEFToBO(new List <Proxy>()
            {
                entity
            });

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