public void MapModelToBO() { var mapper = new BOLPipelineStatuMapper(); ApiPipelineStatuRequestModel model = new ApiPipelineStatuRequestModel(); model.SetProperties("A"); BOPipelineStatu response = mapper.MapModelToBO(1, model); response.Name.Should().Be("A"); }
public void MapBOToModel() { var mapper = new BOLPipelineStatuMapper(); BOPipelineStatu bo = new BOPipelineStatu(); bo.SetProperties(1, "A"); ApiPipelineStatuResponseModel response = mapper.MapBOToModel(bo); response.Id.Should().Be(1); response.Name.Should().Be("A"); }
public void MapBOToModelList() { var mapper = new BOLPipelineStatuMapper(); BOPipelineStatu bo = new BOPipelineStatu(); bo.SetProperties(1, "A"); List <ApiPipelineStatuResponseModel> response = mapper.MapBOToModel(new List <BOPipelineStatu>() { { bo } }); response.Count.Should().Be(1); }