Exemplo n.º 1
0
        public async Task TestFixturesUpdate()
        {
            var charge = await Fixtures.Update(ChargeId, new UpdateChargeRequest());

            Assert.AreEqual(ChargeId, charge.Id);
            Assert.AreEqual("Charge for order 3947 (XXL)", charge.Description);
        }
Exemplo n.º 2
0
        public async Task TestFixturesUpdate()
        {
            var dispute = await Fixtures.Update(DisputeId, new UpdateDisputeRequest());

            Assert.AreEqual(DisputeId, dispute.Id);
            Assert.AreEqual("Your dispute message", dispute.Message);
        }
Exemplo n.º 3
0
        public async Task TestFixturesUpdate()
        {
            var card = await Fixtures.Update(CardId, new UpdateCardRequest());

            Assert.AreEqual(CardId, card.Id);
            Assert.AreEqual("JOHN W. DOE", card.Name);
        }
Exemplo n.º 4
0
        public async Task TestFixturesUpdate()
        {
            var customer = await Fixtures.Update(CustomerId, new UpdateCustomerRequest());

            Assert.AreEqual(CustomerId, customer.Id);
            Assert.AreEqual("John Doe (id: 30)", customer.Description);
        }
Exemplo n.º 5
0
        public async Task TestFixturesUpdate()
        {
            var transfer = await Fixtures.Update(TransferId, new UpdateTransferRequest());

            Assert.AreEqual(TransferId, transfer.Id);
            Assert.AreEqual(192189, transfer.Amount);
        }
Exemplo n.º 6
0
        public async Task TestFixturesUpdate()
        {
            var recipient = await Fixtures.Update(RecipientId, new UpdateRecipientRequest());

            Assert.AreEqual(RecipientId, recipient.Id);
            Assert.AreEqual("*****@*****.**", recipient.Email);
        }
        public void Start()
        {
            lock (_lockObject)
            {
                if (_started)
                {
                    return;
                }
                _started = true;

                HostingEnvironment.RegisterObject(this);

                GlobalConfiguration.Configuration
                .UseSqlServerStorage("PowerLinesContext");
                // Specify other options here

                _backgroundJobServer = new BackgroundJobServer();

                RecurringJob.AddOrUpdate(() => Results.Update(), "0 12,13,14,15,16,17 * * *");
                RecurringJob.AddOrUpdate(() => Fixtures.Update(), "30 12,13,14,15,16,17 * * *");
            }
        }