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 MapEFToBO() { var mapper = new DALChainStatusMapper(); ChainStatus entity = new ChainStatus(); entity.SetProperties(1, "A"); BOChainStatus response = mapper.MapEFToBO(entity); response.Id.Should().Be(1); response.Name.Should().Be("A"); }
public void MapBOToEF() { var mapper = new DALChainStatusMapper(); var bo = new BOChainStatus(); bo.SetProperties(1, "A"); ChainStatus response = mapper.MapBOToEF(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); }