Example #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");
        }
Example #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");
        }
Example #3
0
        public void MapEFToBO()
        {
            var mapper = new DALPipelineStepStatuMapper();
            PipelineStepStatu entity = new PipelineStepStatu();

            entity.SetProperties(1, "A");

            BOPipelineStepStatu response = mapper.MapEFToBO(entity);

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
        }
Example #4
0
        public void MapBOToEF()
        {
            var mapper = new DALPipelineStepStatuMapper();
            var bo     = new BOPipelineStepStatu();

            bo.SetProperties(1, "A");

            PipelineStepStatu response = mapper.MapBOToEF(bo);

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
        }
Example #5
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);
        }