public async Task it_should_check_connectivity_when_database_is_not_available(DatabaseEngine engine)
        {
            // Arrange
            await using var container = new DatabaseTestContainerBuilder().Build(engine);
            var configuration = new ConfigurationBuilder().For(container).Build(engine);
            var sut           = new DatabaseManagerBuilder().With(configuration).Build(engine);

            // Act: container not started
            Func <Task> action = () => sut.CheckConnection();

            // Assert
            action.Should().Throw <Exception>().WithMessage("*not*available*");
        }
        public async Task it_should_check_connectivity_when_database_is_available(DatabaseEngine engine)
        {
            // Arrange
            await using var container = new DatabaseTestContainerBuilder().Build(engine);
            var configuration = new ConfigurationBuilder().For(container).Build(engine);
            var sut           = new DatabaseManagerBuilder().With(configuration).Build(engine);
            await container.StartAsync();

            // Act
            Func <Task> action = () => sut.CheckConnection();

            // Assert
            action.Should().NotThrow();
        }