-
Notifications
You must be signed in to change notification settings - Fork 4
/
LoanApplication.feature
36 lines (33 loc) · 1.18 KB
/
LoanApplication.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Feature: LoanApplication
As a loan application evaluator
I want to only approve loan requests that meet our agreed upon loan amount rules
So the risk associated with supplying loans remains within regulatory boundaries
Scenario Outline: Loan amounts under 1000 are always approved
Given John is an active ParaBank customer
When they apply for a <amount> dollar loan
Then the loan application is approved
Examples:
| amount |
| 999 |
| 1 |
Scenario Outline: Loan amounts greater than or equal to 100000 are always denied
Given John is an active ParaBank customer
When they apply for a <amount> dollar loan
Then the loan application is denied
Examples:
| amount |
| 100000 |
| 999999 |
Scenario Outline: For loan amounts between 1000 and 100000 the result depends on income
Given John is an active ParaBank customer
When they apply for a <amount> dollar loan
And their monthly income is <income>
Then the loan application is <result>
Examples:
| amount | income | result |
| 1000 | 3000 | approved |
| 50000 | 3000 | approved |
| 99999 | 3000 | approved |
| 1000 | 2999 | denied |
| 50000 | 2999 | denied |
| 99999 | 2999 | denied |