public void LostTransactionRecovery() { var requestId = new RandomIdProvider().GetRequestId(); var response = _device.CreditSale(10m) .WithRequestId(requestId) .Execute(); Assert.IsNotNull(response); Assert.AreEqual("00", response.ResponseCode); WaitAndReset(); var duplicateResponse = _device.CreditSale(10m) .WithRequestId(requestId) .Execute(); Assert.IsNotNull(duplicateResponse); Assert.AreEqual("00", duplicateResponse.ResponseCode); Assert.AreEqual(response.AuthorizationCode, duplicateResponse.AuthorizationCode); }
public GeniusCreditTests() { _requestidProvider = new RandomIdProvider(); _device = DeviceService.Create(new ConnectionConfig { DeviceType = DeviceType.GENIUS, ConnectionMode = ConnectionModes.HTTP, IpAddress = "10.12.220.209", Port = "8080", Timeout = 30000, GatewayConfig = new GeniusConfig { MerchantName = "Test Shane Logsdon", MerchantSiteId = "BKHV2T68", MerchantKey = "AT6AN-ALYJE-YF3AW-3M5NN-UQDG1", RegisterNumber = "35", TerminalId = "3", DBA = "GP ECOM" } }); Assert.IsNotNull(_device); }