forked from gongxuegit/tiku-backend.net
feat: add referral qrcode generation provider
This commit is contained in:
@@ -4,6 +4,7 @@ using Microsoft.Extensions.DependencyInjection;
|
||||
using Npgsql;
|
||||
using Tiku.Application.Commerce;
|
||||
using Tiku.Application.Auth;
|
||||
using Tiku.Application.Growth;
|
||||
using Tiku.Application.Storage;
|
||||
using Tiku.Domain.Identity;
|
||||
using Tiku.Domain.Tenancy;
|
||||
@@ -14,6 +15,7 @@ namespace Tiku.IntegrationTests.Api;
|
||||
public sealed class ApiTestFactory(
|
||||
IWechatOAuthClient? wechatOAuthClient = null,
|
||||
IObjectStorageService? objectStorageService = null,
|
||||
IReferralQrcodeGenerator? referralQrcodeGenerator = null,
|
||||
IPaymentProviderGateway? paymentProviderGateway = null) : WebApplicationFactory<Program>
|
||||
{
|
||||
private readonly string databaseName = Guid.NewGuid().ToString();
|
||||
@@ -45,6 +47,11 @@ public sealed class ApiTestFactory(
|
||||
services.AddSingleton(objectStorageService);
|
||||
}
|
||||
|
||||
if (referralQrcodeGenerator is not null)
|
||||
{
|
||||
services.AddSingleton(referralQrcodeGenerator);
|
||||
}
|
||||
|
||||
if (paymentProviderGateway is not null)
|
||||
{
|
||||
services.AddSingleton(paymentProviderGateway);
|
||||
|
||||
Reference in New Issue
Block a user