public async Task Create_One_Backup_File_Mongo()
        {
            // Arrange
            if (!_context.AllowMongoDB)
            {
                Assert.True(true);
                return;
            }

            BackupOptions backupOptions = new BackupOptions
            {
                BackupFolderPath = "."
            };

            BackupMongoRepository backupRepository = new BackupMongoRepository(_context.GetMongoConnection());
            IBackupService        backupService    = GetMockBackupService(backupRepository, backupOptions);

            // Act
            LetPortal.Portal.Models.Recoveries.BackupResponseModel result = await backupService.CreateBackupFile(new LetPortal.Portal.Models.Recoveries.BackupRequestModel
            {
                Name        = "BK_Test",
                Description = "BK Test",
                Creator     = "Admin"
            });

            backupRepository.Dispose();
            // Assert
            Assert.True(!string.IsNullOrEmpty(result.DownloadableUrl));
        }
        public async Task Reach_Maximum_Backup_File_Mongo()
        {
            // Arrange
            if (!_context.AllowMongoDB)
            {
                Assert.True(true);
                return;
            }

            BackupOptions backupOptions = new BackupOptions
            {
                BackupFolderPath = "Backup",
                MaximumObjects   = 0
            };

            BackupMongoRepository backupRepository = new BackupMongoRepository(_context.GetMongoConnection());
            IBackupService        backupService    = GetMockBackupService(backupRepository, backupOptions);

            // Act
            try
            {
                LetPortal.Portal.Models.Recoveries.BackupResponseModel result = await backupService.CreateBackupFile(new LetPortal.Portal.Models.Recoveries.BackupRequestModel
                {
                    Name        = "BK_Test",
                    Description = "BK Test",
                    Creator     = "Admin"
                });
            }
            catch (Exception ex)
            {
                Assert.True(ex is BackupException backupException && backupException.ErrorCode.MessageCode == BackupErrorCodes.ReachMaximumBackupObjects.MessageCode);
            }
            finally
            {
                backupRepository.Dispose();
            }
        }