コード例 #1
0
        public void MapEntityToModelList()
        {
            var mapper            = new DALPipelineStepNoteMapper();
            PipelineStepNote item = new PipelineStepNote();

            item.SetProperties(1, 1, "A", 1);
            List <ApiPipelineStepNoteServerResponseModel> response = mapper.MapEntityToModel(new List <PipelineStepNote>()
            {
                { item }
            });

            response.Count.Should().Be(1);
        }
コード例 #2
0
        public void MapEntityToModel()
        {
            var mapper            = new DALPipelineStepNoteMapper();
            PipelineStepNote item = new PipelineStepNote();

            item.SetProperties(1, 1, "A", 1);
            ApiPipelineStepNoteServerResponseModel response = mapper.MapEntityToModel(item);

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