public void MapEFToBO() { var mapper = new DALHandlerPipelineStepMapper(); HandlerPipelineStep entity = new HandlerPipelineStep(); entity.SetProperties(1, 1, 1); BOHandlerPipelineStep response = mapper.MapEFToBO(entity); response.HandlerId.Should().Be(1); response.Id.Should().Be(1); response.PipelineStepId.Should().Be(1); }
public void MapBOToEF() { var mapper = new DALHandlerPipelineStepMapper(); var bo = new BOHandlerPipelineStep(); bo.SetProperties(1, 1, 1); HandlerPipelineStep response = mapper.MapBOToEF(bo); response.HandlerId.Should().Be(1); response.Id.Should().Be(1); response.PipelineStepId.Should().Be(1); }
public void MapEFToBOList() { var mapper = new DALHandlerPipelineStepMapper(); HandlerPipelineStep entity = new HandlerPipelineStep(); entity.SetProperties(1, 1, 1); List <BOHandlerPipelineStep> response = mapper.MapEFToBO(new List <HandlerPipelineStep>() { entity }); response.Count.Should().Be(1); }