Esempio n. 1
0
        public void MapEFToBOList()
        {
            var mapper = new DALPipelineStepStepRequirementMapper();
            PipelineStepStepRequirement entity = new PipelineStepStepRequirement();

            entity.SetProperties("A", 1, 1, true);

            List <BOPipelineStepStepRequirement> response = mapper.MapEFToBO(new List <PipelineStepStepRequirement>()
            {
                entity
            });

            response.Count.Should().Be(1);
        }
Esempio n. 2
0
        public void MapEFToBO()
        {
            var mapper = new DALPipelineStepStepRequirementMapper();
            PipelineStepStepRequirement entity = new PipelineStepStepRequirement();

            entity.SetProperties("A", 1, 1, true);

            BOPipelineStepStepRequirement response = mapper.MapEFToBO(entity);

            response.Detail.Should().Be("A");
            response.Id.Should().Be(1);
            response.PipelineStepId.Should().Be(1);
            response.RequirementMet.Should().Be(true);
        }