/// <summary>
 /// Checks provided credit card against the Lost/Stolen Account List
 /// </summary>
 /// <param name="accountInquiry">XML to send to MasterCard containing the Account Number</param>
 /// <returns>Account - Account Object containing status information</returns>
 public Account GetLostStolen(AccountInquiry accountInquiry)
 {
     string response = "";
     Dictionary<string, string> responseMap = doRequest(GetURL(), "PUT", Serializer<AccountInquiry>.Serialize(accountInquiry).InnerXml);
     responseMap.TryGetValue(MESSAGE, out response);
     return Serializer<Account>.Deserialize(response);
 }
 public void TestLostStolenService_Counterfeit()
 {
     AccountInquiry accountInquiry = new AccountInquiry();
     accountInquiry.AccountNumber = 4444333322221111;
     Account account = service.GetLostStolen(accountInquiry);
     Assert.AreEqual(true, account.ReasonCode.Equals("X"));
 }
 public void TestLostStolenService_Stolen()
 {
     AccountInquiry accountInquiry = new AccountInquiry();
     accountInquiry.AccountNumber = 5343434343434343;
     Account account = service.GetLostStolen(accountInquiry);
     Assert.AreEqual(true, account.ReasonCode.Equals("S"));
 }
 public void TestLostStolenService_CaptureCard()
 {
     AccountInquiry accountInquiry = new AccountInquiry();
     accountInquiry.AccountNumber = 5305305305305300;
     Account account = service.GetLostStolen(accountInquiry);
     Assert.AreEqual(true, account.ReasonCode.Equals("P"));
 }
 public void TestLostStolenService_UnauthorizedUse()
 {
     AccountInquiry accountInquiry = new AccountInquiry();
     accountInquiry.AccountNumber = 6011111111111117;
     Account account = service.GetLostStolen(accountInquiry);
     Assert.AreEqual(true, account.ReasonCode.Equals("U"));
 }