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

            entity.SetProperties(1, 1, 1);

            BOPipeline response = mapper.MapEFToBO(entity);

            response.Id.Should().Be(1);
            response.PipelineStatusId.Should().Be(1);
            response.SaleId.Should().Be(1);
        }
Ejemplo n.º 2
0
        public void MapEFToBOList()
        {
            var      mapper = new DALPipelineMapper();
            Pipeline entity = new Pipeline();

            entity.SetProperties(1, 1, 1);

            List <BOPipeline> response = mapper.MapEFToBO(new List <Pipeline>()
            {
                entity
            });

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