package com.leanowtech.bloge.starter.loanapproval;

import com.leanowtech.bloge.verification.BlogeScenarioTests;
import org.junit.jupiter.api.DynamicTest;
import org.junit.jupiter.api.TestFactory;

import java.nio.file.Path;
import java.util.stream.Stream;

/** Executes the customer-facing YAML scenarios through the real loan approval DSL and operators. */
class LoanApprovalBusinessScenarioTest {
    @TestFactory
    Stream<DynamicTest> businessDecisions() {
        return BlogeScenarioTests.fromDirectory(
                Path.of("src/test/bloge/scenarios"),
                new LoanApprovalVerificationBootstrap());
    }
}
