Beispiel #1
0
        public virtual ApiPipelineStepNoteServerRequestModel MapServerResponseToRequest(
            ApiPipelineStepNoteServerResponseModel response)
        {
            var request = new ApiPipelineStepNoteServerRequestModel();

            request.SetProperties(
                response.EmployeeId,
                response.Note,
                response.PipelineStepId);
            return(request);
        }
        public void MapModelToEntity()
        {
            var mapper = new DALPipelineStepNoteMapper();
            ApiPipelineStepNoteServerRequestModel model = new ApiPipelineStepNoteServerRequestModel();

            model.SetProperties(1, "A", 1);
            PipelineStepNote response = mapper.MapModelToEntity(1, model);

            response.EmployeeId.Should().Be(1);
            response.Note.Should().Be("A");
            response.PipelineStepId.Should().Be(1);
        }