Beispiel #1
0
        public void MapModelToBO()
        {
            var mapper = new BOLPipelineStatuMapper();
            ApiPipelineStatuRequestModel model = new ApiPipelineStatuRequestModel();

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

            response.Name.Should().Be("A");
        }
Beispiel #2
0
        public void MapBOToModel()
        {
            var             mapper = new BOLPipelineStatuMapper();
            BOPipelineStatu bo     = new BOPipelineStatu();

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

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
        }
Beispiel #3
0
        public void MapBOToModelList()
        {
            var             mapper = new BOLPipelineStatuMapper();
            BOPipelineStatu bo     = new BOPipelineStatu();

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

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