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

            entity.SetProperties(1, "A");

            BOPipelineStatu response = mapper.MapEFToBO(entity);

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
        }
Ejemplo n.º 2
0
        public void MapEFToBOList()
        {
            var           mapper = new DALPipelineStatuMapper();
            PipelineStatu entity = new PipelineStatu();

            entity.SetProperties(1, "A");

            List <BOPipelineStatu> response = mapper.MapEFToBO(new List <PipelineStatu>()
            {
                entity
            });

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