public void MapModelToBO() { var mapper = new BOLTransactionStatusMapper(); ApiTransactionStatusRequestModel model = new ApiTransactionStatusRequestModel(); model.SetProperties("A"); BOTransactionStatus response = mapper.MapModelToBO(1, model); response.Name.Should().Be("A"); }
public void MapBOToModel() { var mapper = new BOLTransactionStatusMapper(); BOTransactionStatus bo = new BOTransactionStatus(); bo.SetProperties(1, "A"); ApiTransactionStatusResponseModel response = mapper.MapBOToModel(bo); response.Id.Should().Be(1); response.Name.Should().Be("A"); }
public void MapBOToModelList() { var mapper = new BOLTransactionStatusMapper(); BOTransactionStatus bo = new BOTransactionStatus(); bo.SetProperties(1, "A"); List <ApiTransactionStatusResponseModel> response = mapper.MapBOToModel(new List <BOTransactionStatus>() { { bo } }); response.Count.Should().Be(1); }