public virtual ApiTransactionStatusServerRequestModel MapServerResponseToRequest( ApiTransactionStatusServerResponseModel response) { var request = new ApiTransactionStatusServerRequestModel(); request.SetProperties( response.Name); return(request); }
public void MapModelToEntity() { var mapper = new DALTransactionStatusMapper(); ApiTransactionStatusServerRequestModel model = new ApiTransactionStatusServerRequestModel(); model.SetProperties("A"); TransactionStatus response = mapper.MapModelToEntity(1, model); response.Name.Should().Be("A"); }