feat: implement triggering text to speech on successful payment
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.AspNetCore.Mvc.Testing;
|
||||
using System.Text;
|
||||
using System.Text.Json;
|
||||
|
||||
using GroundsForSupport.Server.Data;
|
||||
using GroundsForSupport.Server.Payments.Stripe;
|
||||
|
||||
using System.Text.Json;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.AspNetCore.Mvc.Testing;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using System.Text;
|
||||
|
||||
namespace GroundsForSupport.Server.Tests.Integration.Infra;
|
||||
|
||||
@@ -25,7 +26,7 @@ public sealed class TestApi : WebApplicationFactory<Program>
|
||||
|
||||
var contextOptionsJson = JsonSerializer.Serialize(contextOptions);
|
||||
var stripeOptionsJson = JsonSerializer.Serialize(stripeOptions);
|
||||
|
||||
|
||||
var configJson = $@"{{
|
||||
""{nameof(ContextOptions)}"": {contextOptionsJson},
|
||||
""{nameof(StripeOptions)}"": {stripeOptionsJson}
|
||||
|
||||
@@ -69,7 +69,7 @@ public sealed class PaymentTests(TestApi api) : IClassFixture<TestApi>
|
||||
)
|
||||
)
|
||||
.ReturnsAsync((true, new Intent("pi_12345_secret_67890")));
|
||||
|
||||
|
||||
var api = _api.WithWebHostBuilder(
|
||||
b => b.ConfigureTestServices(
|
||||
s => s.AddSingleton(mockStripeService.Object)
|
||||
|
||||
Reference in New Issue
Block a user