Example #1
0
        public void MapModelToEntity()
        {
            var mapper = new DALHandlerPipelineStepMapper();
            ApiHandlerPipelineStepServerRequestModel model = new ApiHandlerPipelineStepServerRequestModel();

            model.SetProperties(1, 1);
            HandlerPipelineStep response = mapper.MapModelToEntity(1, model);

            response.HandlerId.Should().Be(1);
            response.PipelineStepId.Should().Be(1);
        }
Example #2
0
        public void MapEntityToModel()
        {
            var mapper = new DALHandlerPipelineStepMapper();
            HandlerPipelineStep item = new HandlerPipelineStep();

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

            response.HandlerId.Should().Be(1);
            response.Id.Should().Be(1);
            response.PipelineStepId.Should().Be(1);
        }
Example #3
0
        public void MapEntityToModelList()
        {
            var mapper = new DALHandlerPipelineStepMapper();
            HandlerPipelineStep item = new HandlerPipelineStep();

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

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