Exemplo n.º 1
0
        public void List_WhenConfigValidNoTxn_ShouldListCharges()
        {
            var chargeSvc = new HpsCreditService(TestServicesConfig.ValidSecretKeyConfig());
            var items     = chargeSvc.List(DateTime.UtcNow.AddDays(-10), DateTime.UtcNow);

            Assert.IsNotNull(items);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 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);
 }
Exemplo n.º 5
0
 public void List_WhenConfigValidNoTxn_ShouldListCharges()
 {
     var chargeSvc = new HpsCreditService(TestServicesConfig.ValidSecretKeyConfig());
     var items = chargeSvc.List(DateTime.UtcNow.AddDays(-10), DateTime.UtcNow);
     Assert.IsNotNull(items);
 }
Exemplo n.º 6
0
        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);
        }