feat: implement triggering text to speech on successful payment

This commit is contained in:
Stevan Freeborn
2026-01-05 21:56:14 -06:00
parent 7022894ccb
commit 961142ac07
10 changed files with 123 additions and 11 deletions
@@ -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)