public virtual PipelineStepDestination MapBOToEF(
            BOPipelineStepDestination bo)
        {
            PipelineStepDestination efPipelineStepDestination = new PipelineStepDestination();

            efPipelineStepDestination.SetProperties(
                bo.DestinationId,
                bo.Id,
                bo.PipelineStepId);
            return(efPipelineStepDestination);
        }
        public void MapEntityToModel()
        {
            var mapper = new DALPipelineStepDestinationMapper();
            PipelineStepDestination item = new PipelineStepDestination();

            item.SetProperties(1, 1, 1);
            ApiPipelineStepDestinationServerResponseModel response = mapper.MapEntityToModel(item);

            response.DestinationId.Should().Be(1);
            response.Id.Should().Be(1);
            response.PipelineStepId.Should().Be(1);
        }
Example #3
0
        public void MapEFToBO()
        {
            var mapper = new DALPipelineStepDestinationMapper();
            PipelineStepDestination entity = new PipelineStepDestination();

            entity.SetProperties(1, 1, 1);

            BOPipelineStepDestination response = mapper.MapEFToBO(entity);

            response.DestinationId.Should().Be(1);
            response.Id.Should().Be(1);
            response.PipelineStepId.Should().Be(1);
        }
        public virtual PipelineStepDestination MapModelToEntity(
            int id,
            ApiPipelineStepDestinationServerRequestModel model
            )
        {
            PipelineStepDestination item = new PipelineStepDestination();

            item.SetProperties(
                id,
                model.DestinationId,
                model.PipelineStepId);
            return(item);
        }
        public void MapEntityToModelList()
        {
            var mapper = new DALPipelineStepDestinationMapper();
            PipelineStepDestination item = new PipelineStepDestination();

            item.SetProperties(1, 1, 1);
            List <ApiPipelineStepDestinationServerResponseModel> response = mapper.MapEntityToModel(new List <PipelineStepDestination>()
            {
                { item }
            });

            response.Count.Should().Be(1);
        }
Example #6
0
        public void MapEFToBOList()
        {
            var mapper = new DALPipelineStepDestinationMapper();
            PipelineStepDestination entity = new PipelineStepDestination();

            entity.SetProperties(1, 1, 1);

            List <BOPipelineStepDestination> response = mapper.MapEFToBO(new List <PipelineStepDestination>()
            {
                entity
            });

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