Files
EmailBill/WebApi.Test/Repository/PushSubscriptionRepositoryTest.cs
SunCheng 704f58b1a1
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 24s
Docker Build & Deploy / Deploy to Production (push) Successful in 6s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s
Docker Build & Deploy / WeChat Notification (push) Successful in 3s
fix
2026-01-30 10:41:19 +08:00

22 lines
600 B
C#

namespace WebApi.Test.Repository;
public class PushSubscriptionRepositoryTest : RepositoryTestBase
{
private readonly IPushSubscriptionRepository _repository;
public PushSubscriptionRepositoryTest()
{
_repository = new PushSubscriptionRepository(FreeSql);
}
[Fact]
public async Task GetByEndpointAsync_通过Endpoint获取_Test()
{
await _repository.AddAsync(new PushSubscription { Endpoint = "ep1" });
var sub = await _repository.GetByEndpointAsync("ep1");
sub.Should().NotBeNull();
sub.Endpoint.Should().Be("ep1");
}
}