예제 #1
0
        public void MapModelToBO()
        {
            var mapper = new BOLPipelineStepStatuMapper();
            ApiPipelineStepStatuRequestModel model = new ApiPipelineStepStatuRequestModel();

            model.SetProperties("A");
            BOPipelineStepStatu response = mapper.MapModelToBO(1, model);

            response.Name.Should().Be("A");
        }
예제 #2
0
        public void MapBOToModel()
        {
            var mapper             = new BOLPipelineStepStatuMapper();
            BOPipelineStepStatu bo = new BOPipelineStepStatu();

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

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
        }
예제 #3
0
        public void MapBOToModelList()
        {
            var mapper             = new BOLPipelineStepStatuMapper();
            BOPipelineStepStatu bo = new BOPipelineStepStatu();

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

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