feat(sms): complete SmsConfig bundle export/import wiring + GetSmsConfigurationByIdAsync (S10b)
This commit is contained in:
@@ -213,6 +213,18 @@ public class NotificationRepositoryTests : IDisposable
|
||||
Assert.Equal("smtp.example.test", loaded!.Host);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task AddSmsConfiguration_AndGetById_RoundTrips()
|
||||
{
|
||||
var sms = new SmsConfiguration("ACbyid123", "+14155550111");
|
||||
await _repository.AddSmsConfigurationAsync(sms);
|
||||
await _repository.SaveChangesAsync();
|
||||
|
||||
var loaded = await _repository.GetSmsConfigurationByIdAsync(sms.Id);
|
||||
Assert.NotNull(loaded);
|
||||
Assert.Equal("ACbyid123", loaded!.AccountSid);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task DeleteNotificationList_RemovesEntity()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user