Ejemplo n.º 1
0
        public void MapEFToBO()
        {
            var           mapper = new DALConfigurationMapper();
            Configuration entity = new Configuration();

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

            BOConfiguration response = mapper.MapEFToBO(entity);

            response.Id.Should().Be("A");
            response.JSON.Should().Be("A");
        }
Ejemplo n.º 2
0
        public void MapEFToBOList()
        {
            var           mapper = new DALConfigurationMapper();
            Configuration entity = new Configuration();

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

            List <BOConfiguration> response = mapper.MapEFToBO(new List <Configuration>()
            {
                entity
            });

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