Exemplo n.º 1
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);
        }
Exemplo n.º 2
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);
        }