public void MapModelToBO() { var mapper = new BOLChainStatusMapper(); ApiChainStatusRequestModel model = new ApiChainStatusRequestModel(); model.SetProperties("A"); BOChainStatus response = mapper.MapModelToBO(1, model); response.Name.Should().Be("A"); }
public void MapBOToModel() { var mapper = new BOLChainStatusMapper(); BOChainStatus bo = new BOChainStatus(); bo.SetProperties(1, "A"); ApiChainStatusResponseModel response = mapper.MapBOToModel(bo); response.Id.Should().Be(1); response.Name.Should().Be("A"); }
public void MapBOToModelList() { var mapper = new BOLChainStatusMapper(); BOChainStatus bo = new BOChainStatus(); bo.SetProperties(1, "A"); List <ApiChainStatusResponseModel> response = mapper.MapBOToModel(new List <BOChainStatus>() { { bo } }); response.Count.Should().Be(1); }