blob: eaffbe2d94256d3e2570688c7b0e17cd21c1ac23 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
using FluentAssertions;
using Microsoft.Extensions.DependencyInjection;
using System.IO;
using Timeline.Services;
using Xunit;
namespace Timeline.Tests.IntegratedTests
{
public class DatabaseManagementTest : IntegratedTestBase
{
[Fact]
public void Backup_Should_Work()
{
var pathProvider = TestApp.Host.Services.GetRequiredService<IPathProvider>();
var backupDir = pathProvider.GetDatabaseBackupDirectory();
Directory.GetFiles(backupDir).Should().NotBeEmpty();
}
}
}
|