public void test30() { Authorization authorization = new Authorization(); authorization.OrderId = "30"; authorization.Amount = 20000; authorization.OrderSource = OrderSourceType.Ecommerce; CardType card = new CardType(); card.Type = MethodOfPaymentTypeEnum.VI; card.Number = "4024720001231239"; card.ExpDate = "1212"; authorization.Card = card; authorization.AllowPartialAuth = true; HealthcareIIAS healthcareiias = new HealthcareIIAS(); HealthcareAmounts healthcareamounts = new HealthcareAmounts(); healthcareamounts.TotalHealthcareAmount = 20000; healthcareamounts.RxAmount = 1000; healthcareamounts.VisionAmount = 19901; healthcareamounts.ClinicOtherAmount = 9050; healthcareamounts.DentalAmount = 1049; healthcareiias.HealthcareAmounts = healthcareamounts; healthcareiias.IIASFlag = IIASFlagType.Y; authorization.HealthcareIIAS = healthcareiias; AuthorizationResponse response = litle.Authorize(authorization); Assert.AreEqual("341", response.Response); Assert.AreEqual("Invalid healthcare amounts", response.Message); }
public void test31() { Authorization authorization = new Authorization(); authorization.OrderId = "31"; authorization.Amount = 25000; authorization.OrderSource = OrderSourceType.Ecommerce; CardType card = new CardType(); card.Type = MethodOfPaymentTypeEnum.VI; card.Number = "4024720001231239"; card.ExpDate = "1212"; authorization.Card = card; authorization.AllowPartialAuth = true; HealthcareIIAS healthcareiias = new HealthcareIIAS(); HealthcareAmounts healthcareamounts = new HealthcareAmounts(); healthcareamounts.TotalHealthcareAmount = 18699; healthcareamounts.RxAmount = 1000; healthcareamounts.VisionAmount = 15099; healthcareiias.HealthcareAmounts = healthcareamounts; healthcareiias.IIASFlag = IIASFlagType.Y; authorization.HealthcareIIAS = healthcareiias; AuthorizationResponse response = litle.Authorize(authorization); Assert.AreEqual("010", response.Response); Assert.AreEqual("Partially Approved", response.Message); Assert.AreEqual("18699", response.ApprovedAmount); }
public void test28() { Authorization authorization = new Authorization(); authorization.OrderId = "28"; authorization.Amount = 15000; authorization.OrderSource = OrderSourceType.Ecommerce; CardType card = new CardType(); card.Type = MethodOfPaymentTypeEnum.MC; card.Number = "5194560012341234"; card.ExpDate = "1212"; authorization.Card = card; authorization.AllowPartialAuth = true; HealthcareIIAS healthcareiias = new HealthcareIIAS(); HealthcareAmounts healthcareamounts = new HealthcareAmounts(); healthcareamounts.TotalHealthcareAmount = 15000; healthcareamounts.RxAmount = 3698; healthcareiias.HealthcareAmounts = healthcareamounts; healthcareiias.IIASFlag = IIASFlagType.Y; authorization.HealthcareIIAS = healthcareiias; AuthorizationResponse response = litle.Authorize(authorization); Assert.AreEqual("000", response.Response); Assert.AreEqual("Approved", response.Message); }