示例#1
0
        public void MapBOToModelList()
        {
            var mapper            = new BOLPipelineStepNoteMapper();
            BOPipelineStepNote bo = new BOPipelineStepNote();

            bo.SetProperties(1, 1, "A", 1);
            List <ApiPipelineStepNoteResponseModel> response = mapper.MapBOToModel(new List <BOPipelineStepNote>()
            {
                { bo }
            });

            response.Count.Should().Be(1);
        }
示例#2
0
        public void MapBOToModel()
        {
            var mapper            = new BOLPipelineStepNoteMapper();
            BOPipelineStepNote bo = new BOPipelineStepNote();

            bo.SetProperties(1, 1, "A", 1);
            ApiPipelineStepNoteResponseModel response = mapper.MapBOToModel(bo);

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