Mapping: [Feature Name]
[!IMPORTANT] This file guides the Developer/SDET on how to automate the scenarios in
[FeatureName].feature.
1. Test Context Setup
- Database: Requires
[Entity]with state[State]. - Mocking:
IClock: Mock to control time (for deadlines).ICurrentUser: Mock to simulate [Role].
2. Step Definitions Mapping
"Given an Order exists..."
- Method:
Factory.CreateOrder(status: validated) - Table:
ORDER_TRAVEL_PRODUCT
"When the Dashboard Worklist is calculated..."
- Class:
OrderTravelProductOMGTList - Method:
GetWorklist()orToWepDashboardInfoDTO() - SQL Note: Verify the generated SQL includes
[Field].
"Then the Order should appear..."
- Assertion:
result.Any(x => x.Id == orderId)
3. Legacy Quirks
- GlobalSession: Does this logic rely on
Session["User"]? If so, ensure the TestContext mocks it.