Skip to content

Commit 2b592d1

Browse files
Update MeterResponse serialization to use camelCase
Changed StringSerialiser.Serialise in PataPawaPrePayProxyTests to use camelCase property formatting for MeterResponse, ensuring consistency with expected JSON structure.
1 parent 7fb721c commit 2b592d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

TransactionProcessor.BusinessLogic.Tests/OperatorInterfaces/PataPawaPrePayProxyTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public async Task PataPawaPrePayProxy_ProcessSaleMessage_MeterTransaction_Failed
134134

135135
MeterResponse meterResponse = new MeterResponse { Status = -1, Code = "1", CustomerName = "Customer", Msg = "msg" };
136136

137-
this.MockHttpMessageHandler.When("http://localhost").Respond("application/json", StringSerialiser.Serialise(meterResponse));
137+
this.MockHttpMessageHandler.When("http://localhost").Respond("application/json", StringSerialiser.Serialise(meterResponse, new SerialiserOptions(SerialiserPropertyFormat.CamelCase)));
138138

139139
var result = await this.PataPawaPrePayProxy.ProcessSaleMessage(TestData.TransactionId,
140140
TestData.OperatorId, TestData.Merchant, TestData.TransactionDateTime, TestData.TransactionReference,

0 commit comments

Comments
 (0)