Ejemplo n.º 1
0
        public void MapModelToBO()
        {
            var mapper = new BOLHandlerPipelineStepMapper();
            ApiHandlerPipelineStepRequestModel model = new ApiHandlerPipelineStepRequestModel();

            model.SetProperties(1, 1);
            BOHandlerPipelineStep response = mapper.MapModelToBO(1, model);

            response.HandlerId.Should().Be(1);
            response.PipelineStepId.Should().Be(1);
        }
Ejemplo n.º 2
0
        public void MapBOToModel()
        {
            var mapper = new BOLHandlerPipelineStepMapper();
            BOHandlerPipelineStep bo = new BOHandlerPipelineStep();

            bo.SetProperties(1, 1, 1);
            ApiHandlerPipelineStepResponseModel response = mapper.MapBOToModel(bo);

            response.HandlerId.Should().Be(1);
            response.Id.Should().Be(1);
            response.PipelineStepId.Should().Be(1);
        }
Ejemplo n.º 3
0
        public void MapBOToModelList()
        {
            var mapper = new BOLHandlerPipelineStepMapper();
            BOHandlerPipelineStep bo = new BOHandlerPipelineStep();

            bo.SetProperties(1, 1, 1);
            List <ApiHandlerPipelineStepResponseModel> response = mapper.MapBOToModel(new List <BOHandlerPipelineStep>()
            {
                { bo }
            });

            response.Count.Should().Be(1);
        }
        public void MapEFToBO()
        {
            var mapper = new DALHandlerPipelineStepMapper();
            HandlerPipelineStep entity = new HandlerPipelineStep();

            entity.SetProperties(1, 1, 1);

            BOHandlerPipelineStep response = mapper.MapEFToBO(entity);

            response.HandlerId.Should().Be(1);
            response.Id.Should().Be(1);
            response.PipelineStepId.Should().Be(1);
        }
        public void MapBOToEF()
        {
            var mapper = new DALHandlerPipelineStepMapper();
            var bo     = new BOHandlerPipelineStep();

            bo.SetProperties(1, 1, 1);

            HandlerPipelineStep response = mapper.MapBOToEF(bo);

            response.HandlerId.Should().Be(1);
            response.Id.Should().Be(1);
            response.PipelineStepId.Should().Be(1);
        }