public virtual OtherTransport MapBOToEF(
            BOOtherTransport bo)
        {
            OtherTransport efOtherTransport = new OtherTransport();

            efOtherTransport.SetProperties(
                bo.HandlerId,
                bo.Id,
                bo.PipelineStepId);
            return(efOtherTransport);
        }
Ejemplo n.º 2
0
        public void MapEntityToModel()
        {
            var            mapper = new DALOtherTransportMapper();
            OtherTransport item   = new OtherTransport();

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

            response.HandlerId.Should().Be(1);
            response.Id.Should().Be(1);
            response.PipelineStepId.Should().Be(1);
        }
Ejemplo n.º 3
0
        public void MapEFToBO()
        {
            var            mapper = new DALOtherTransportMapper();
            OtherTransport entity = new OtherTransport();

            entity.SetProperties(1, 1, 1);

            BOOtherTransport response = mapper.MapEFToBO(entity);

            response.HandlerId.Should().Be(1);
            response.Id.Should().Be(1);
            response.PipelineStepId.Should().Be(1);
        }
Ejemplo n.º 4
0
        public virtual OtherTransport MapModelToEntity(
            int id,
            ApiOtherTransportServerRequestModel model
            )
        {
            OtherTransport item = new OtherTransport();

            item.SetProperties(
                id,
                model.HandlerId,
                model.PipelineStepId);
            return(item);
        }
Ejemplo n.º 5
0
        public void MapEntityToModelList()
        {
            var            mapper = new DALOtherTransportMapper();
            OtherTransport item   = new OtherTransport();

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

            response.Count.Should().Be(1);
        }
Ejemplo n.º 6
0
        public void MapEFToBOList()
        {
            var            mapper = new DALOtherTransportMapper();
            OtherTransport entity = new OtherTransport();

            entity.SetProperties(1, 1, 1);

            List <BOOtherTransport> response = mapper.MapEFToBO(new List <OtherTransport>()
            {
                entity
            });

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