public void testCaptureGivenAuth()
{
captureGivenAuth capturegivenauth = new captureGivenAuth();
capturegivenauth.orderId = "12344";
capturegivenauth.amount = 106;
authInformation authinfo = new authInformation();
authinfo.authDate = new DateTime(2002, 10, 9);
authinfo.authCode = "543216";
authinfo.authAmount = 12345;
capturegivenauth.authInformation = authinfo;
capturegivenauth.orderSource = orderSourceType.ecommerce;
cardType card = new cardType();
card.type = methodOfPaymentTypeEnum.VI;
card.number = "4100000000000001";
card.expDate = "1210";
capturegivenauth.card = card;
batchRequest.addCaptureGivenAuth(capturegivenauth);
Assert.AreEqual(1, batchRequest.getNumCaptureGivenAuth());
Assert.AreEqual(capturegivenauth.amount, batchRequest.getSumOfCaptureGivenAuth());
mockLitleFile.Verify(litleFile => litleFile.createRandomFile(It.IsAny<String>(), It.IsAny<String>(), It.IsAny<String>(), mockLitleTime.Object));
mockLitleFile.Verify(litleFile => litleFile.AppendLineToFile(mockFilePath, capturegivenauth.Serialize()));
}