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); }
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); }
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); }