public void TestCapture() { var capture = new capture(); capture.cnpTxnId = 12345678000; capture.amount = 106; batchRequest.addCapture(capture); Assert.AreEqual(1, batchRequest.getNumCapture()); Assert.AreEqual(capture.amount, batchRequest.getSumOfCapture()); mockCnpFile.Verify(cnpFile => cnpFile.createRandomFile(It.IsAny <string>(), It.IsAny <string>(), It.IsAny <string>(), mockCnpTime.Object)); mockCnpFile.Verify(cnpFile => cnpFile.AppendLineToFile(mockFilePath, capture.Serialize())); }
public void TestCapture() { var capture = new capture(); capture.litleTxnId = 12345678000; capture.amount = 106; _batchRequest.addCapture(capture); Assert.AreEqual(1, _batchRequest.getNumCapture()); Assert.AreEqual(capture.amount, _batchRequest.getSumOfCapture()); _mockLitleFile.Verify(litleFile => litleFile.createRandomFile(It.IsAny <string>(), It.IsAny <string>(), It.IsAny <string>(), _mockLitleTime.Object)); _mockLitleFile.Verify(litleFile => litleFile.AppendLineToFile(MockFilePath, capture.Serialize())); }
public void testCapture() { var capture = new capture(); capture.litleTxnId = 12345678000; capture.amount = 106; batchRequest.addCapture(capture); Assert.AreEqual(1, batchRequest.getNumCapture()); Assert.AreEqual(capture.amount, batchRequest.getSumOfCapture()); mockLitleFile.Verify( litleFile => litleFile.createRandomFile(It.IsAny<string>(), It.IsAny<string>(), It.IsAny<string>(), mockLitleTime.Object)); mockLitleFile.Verify(litleFile => litleFile.AppendLineToFile(mockFilePath, capture.Serialize())); }