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); }
public async Task TestFixturesUpdate() { var dispute = await Fixtures.Update(DisputeId, new UpdateDisputeRequest()); Assert.AreEqual(DisputeId, dispute.Id); Assert.AreEqual("Your dispute message", dispute.Message); }
public async Task TestFixturesUpdate() { var card = await Fixtures.Update(CardId, new UpdateCardRequest()); Assert.AreEqual(CardId, card.Id); Assert.AreEqual("JOHN W. DOE", card.Name); }
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); }
public async Task TestFixturesUpdate() { var transfer = await Fixtures.Update(TransferId, new UpdateTransferRequest()); Assert.AreEqual(TransferId, transfer.Id); Assert.AreEqual(192189, transfer.Amount); }
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 * * *"); } }