public void Should_Retrieve_Bin_Number() { RetrieveBinNumberRequest request = new RetrieveBinNumberRequest(); request.Locale = Locale.TR.ToString(); request.ConversationId = "123456789"; request.BinNumber = "554960"; BinNumber binNumber = BinNumber.Retrieve(request, options); PrintResponse <BinNumber>(binNumber); Assert.AreEqual(Status.SUCCESS.ToString(), binNumber.Status); Assert.AreEqual(Locale.TR.ToString(), binNumber.Locale); Assert.AreEqual("123456789", binNumber.ConversationId); Assert.IsNotNull(binNumber.SystemTime); Assert.IsNull(binNumber.ErrorCode); Assert.IsNull(binNumber.ErrorMessage); Assert.IsNull(binNumber.ErrorGroup); Assert.AreEqual("554960", binNumber.Bin); Assert.AreEqual("CREDIT_CARD", binNumber.CardType); Assert.AreEqual("MASTER_CARD", binNumber.CardAssociation); Assert.AreEqual("Bonus", binNumber.CardFamily); Assert.AreEqual("Garanti Bankası", binNumber.BankName); Assert.AreEqual(62, binNumber.BankCode); }
public void Should_Retrieve_Bin_With_Commercial_One() { RetrieveBinNumberRequest request = RetrieveBinNumberRequestBuilder.Create() .BinNumber("552659") .Build(); BinNumber binNumber = BinNumber.Retrieve(request, _options); PrintResponse(request); Assert.AreEqual(Status.SUCCESS.ToString(), binNumber.Status); Assert.AreEqual(Locale.TR.ToString(), binNumber.Locale); Assert.AreEqual("123456789", binNumber.ConversationId); Assert.NotNull(binNumber.SystemTime); Assert.Null(binNumber.ErrorCode); Assert.Null(binNumber.ErrorMessage); Assert.Null(binNumber.ErrorGroup); Assert.AreEqual("552659", binNumber.Bin); Assert.AreEqual("CREDIT_CARD", binNumber.CardType); Assert.AreEqual("MASTER_CARD", binNumber.CardAssociation); Assert.AreEqual("World", binNumber.CardFamily); Assert.AreEqual("Yapı Kredi Bankası", binNumber.BankName); Assert.AreEqual(1, binNumber.Commercial); Assert.AreEqual(67, binNumber.BankCode); }
public void Should_Retrieve_Bin_Number() { RetrieveBinNumberRequest request = new RetrieveBinNumberRequest(); request.BinNumber = "454671"; request.ConversationId = "123456789"; request.Locale = Locale.TR.GetName(); BinNumber binNumber = BinNumber.Retrieve(request, options); PrintResponse <BinNumber>(binNumber); Assert.IsNotNull(binNumber.SystemTime); Assert.AreEqual(Status.SUCCESS.ToString(), binNumber.Status); Assert.AreEqual(Locale.TR.GetName(), binNumber.Locale); Assert.AreEqual("123456789", binNumber.ConversationId); Assert.AreEqual("454671", binNumber.Bin); Assert.AreEqual("CREDIT_CARD", binNumber.CardType); Assert.AreEqual("VISA", binNumber.CardAssociation); Assert.AreEqual("Ziraat Bankası CC", binNumber.CardFamily); Assert.AreEqual("Ziraat Bankası", binNumber.BankName); Assert.AreEqual(10, binNumber.BankCode); }
public void Should_Retrieve_Bin() { RetrieveBinNumberRequest request = RetrieveBinNumberRequestBuilder.Create() .BinNumber("554960") .Build(); BinNumber binNumber = BinNumber.Retrieve(request, Options); PrintResponse(request); Assert.AreEqual(Status.SUCCESS.ToString(), binNumber.Status); Assert.AreEqual(Locale.TR.ToString(), binNumber.Locale); Assert.AreEqual("123456789", binNumber.ConversationId); Assert.NotNull(binNumber.SystemTime); Assert.Null(binNumber.ErrorCode); Assert.Null(binNumber.ErrorMessage); Assert.Null(binNumber.ErrorGroup); Assert.AreEqual("554960", binNumber.Bin); Assert.AreEqual("CREDIT_CARD", binNumber.CardType); Assert.AreEqual("MASTER_CARD", binNumber.CardAssociation); Assert.AreEqual("Bonus", binNumber.CardFamily); Assert.AreEqual("Garanti Bankası", binNumber.BankName); Assert.AreEqual(62, binNumber.BankCode); }