aboutsummaryrefslogtreecommitdiff
path: root/BackEnd
diff options
context:
space:
mode:
Diffstat (limited to 'BackEnd')
-rw-r--r--BackEnd/Timeline.Tests/IntegratedTests/DatabaseManagementTest.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/BackEnd/Timeline.Tests/IntegratedTests/DatabaseManagementTest.cs b/BackEnd/Timeline.Tests/IntegratedTests/DatabaseManagementTest.cs
new file mode 100644
index 00000000..eaffbe2d
--- /dev/null
+++ b/BackEnd/Timeline.Tests/IntegratedTests/DatabaseManagementTest.cs
@@ -0,0 +1,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();
+ }
+ }
+}