public virtual PipelineStepStatu MapBOToEF(
            BOPipelineStepStatu bo)
        {
            PipelineStepStatu efPipelineStepStatu = new PipelineStepStatu();

            efPipelineStepStatu.SetProperties(
                bo.Id,
                bo.Name);
            return(efPipelineStepStatu);
        }
Beispiel #2
0
        public void MapEFToBO()
        {
            var mapper = new DALPipelineStepStatuMapper();
            PipelineStepStatu entity = new PipelineStepStatu();

            entity.SetProperties(1, "A");

            BOPipelineStepStatu response = mapper.MapEFToBO(entity);

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
        }
Beispiel #3
0
        public void MapEFToBOList()
        {
            var mapper = new DALPipelineStepStatuMapper();
            PipelineStepStatu entity = new PipelineStepStatu();

            entity.SetProperties(1, "A");

            List <BOPipelineStepStatu> response = mapper.MapEFToBO(new List <PipelineStepStatu>()
            {
                entity
            });

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