Ejemplo n.º 1
0
        public void MapBOToModel()
        {
            var            mapper = new BOLPipelineStepMapper();
            BOPipelineStep bo     = new BOPipelineStep();

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

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
            response.PipelineStepStatusId.Should().Be(1);
            response.ShipperId.Should().Be(1);
        }
Ejemplo n.º 2
0
        public void MapBOToModelList()
        {
            var            mapper = new BOLPipelineStepMapper();
            BOPipelineStep bo     = new BOPipelineStep();

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

            response.Count.Should().Be(1);
        }
Ejemplo n.º 3
0
        public void MapBOToEF()
        {
            var mapper = new DALPipelineStepMapper();
            var bo     = new BOPipelineStep();

            bo.SetProperties(1, "A", 1, 1);

            PipelineStep response = mapper.MapBOToEF(bo);

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
            response.PipelineStepStatusId.Should().Be(1);
            response.ShipperId.Should().Be(1);
        }