public void MapModelToBO() { var mapper = new BOLPipelineStepStatuMapper(); ApiPipelineStepStatuRequestModel model = new ApiPipelineStepStatuRequestModel(); model.SetProperties("A"); BOPipelineStepStatu response = mapper.MapModelToBO(1, model); response.Name.Should().Be("A"); }
public void MapBOToModel() { var mapper = new BOLPipelineStepStatuMapper(); BOPipelineStepStatu bo = new BOPipelineStepStatu(); bo.SetProperties(1, "A"); ApiPipelineStepStatuResponseModel response = mapper.MapBOToModel(bo); response.Id.Should().Be(1); response.Name.Should().Be("A"); }
public void MapEFToBO() { var mapper = new DALPipelineStepStatuMapper(); PipelineStepStatu entity = new PipelineStepStatu(); entity.SetProperties(1, "A"); BOPipelineStepStatu response = mapper.MapEFToBO(entity); response.Id.Should().Be(1); response.Name.Should().Be("A"); }
public void MapBOToEF() { var mapper = new DALPipelineStepStatuMapper(); var bo = new BOPipelineStepStatu(); bo.SetProperties(1, "A"); PipelineStepStatu response = mapper.MapBOToEF(bo); response.Id.Should().Be(1); response.Name.Should().Be("A"); }
public void MapBOToModelList() { var mapper = new BOLPipelineStepStatuMapper(); BOPipelineStepStatu bo = new BOPipelineStepStatu(); bo.SetProperties(1, "A"); List <ApiPipelineStepStatuResponseModel> response = mapper.MapBOToModel(new List <BOPipelineStepStatu>() { { bo } }); response.Count.Should().Be(1); }