public void MapBOToModel() { var mapper = new BOLPipelineStatusMapper(); BOPipelineStatus bo = new BOPipelineStatus(); bo.SetProperties(1, "A"); ApiPipelineStatusResponseModel response = mapper.MapBOToModel(bo); response.Id.Should().Be(1); response.Name.Should().Be("A"); }
public void MapBOToModelList() { var mapper = new BOLPipelineStatusMapper(); BOPipelineStatus bo = new BOPipelineStatus(); bo.SetProperties(1, "A"); List <ApiPipelineStatusResponseModel> response = mapper.MapBOToModel(new List <BOPipelineStatus>() { { bo } }); response.Count.Should().Be(1); }