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