public void List_WhenConfigValidNoTxn_ShouldListCharges() { var chargeSvc = new HpsCreditService(TestServicesConfig.ValidSecretKeyConfig()); var items = chargeSvc.List(DateTime.UtcNow.AddDays(-10), DateTime.UtcNow); Assert.IsNotNull(items); }
public void List_WhenConfigValid_ShouldListTransactions() { var chargeSvc = new HpsCreditService(TestServicesConfig.ValidSecretKeyConfig()); List <HpsReportTransactionSummary> items = chargeSvc.List(DateTime.Today.AddDays(-10), DateTime.Today); Assert.IsNotNull(items); }
public void GetFirst_WhenConfigValid_ShouldGetTheFirstCharge() { var chargeSvc = new HpsCreditService(TestServicesConfig.ValidSecretKeyConfig()); var items = chargeSvc.List(DateTime.Today.AddDays(-10), DateTime.Today); if (items.Count <= 0) { return; } var charge = chargeSvc.Get(items[0].TransactionId); Assert.IsNotNull(charge); }
public void GetFirst_WhenConfigValid_ShouldGetTheFirstCharge() { var chargeSvc = new HpsCreditService(TestServicesConfig.ValidSecretKeyConfig()); var items = chargeSvc.List(DateTime.Today.AddDays(-10), DateTime.Today); if (items.Count <= 0) return; var charge = chargeSvc.Get(items[0].TransactionId); Assert.IsNotNull(charge); }
public void List_WhenConfigValid_ShouldListTransactions() { var chargeSvc = new HpsCreditService(TestServicesConfig.ValidSecretKeyConfig()); List<HpsReportTransactionSummary> items = chargeSvc.List(DateTime.Today.AddDays(-10), DateTime.Today); Assert.IsNotNull(items); }