NUnit C# Unit Test Implementation
Budget: ₹600 – ₹1,500 INR
We have provided a working example of a website that can create a vehicle repair plan by adding individual repair procedures to an initial blank plan. The application displays a list of available procedures, and the user can decide and select those that he deems necessary to repair the vehicle. In addition, we can assign a person or several people to each procedure added to the plan (in this case: a mechanic, an employee of a repair facility, etc.).
Issue description / Bug report
Steps to reproduce:
Create a new Plan
This happens when you click Start on the home page of the frontend project when it's running.
List of procedures available for the plan load are loaded automatically when a plan is created. They will show up in Procedures list (left column of the Plan).
Add 2 procedures to the Plan
Procedures are added to a plan when you click a checkbox from the Procedures list on the left side of the plans component.
After being added, the procedure checkbox will show up selected along with being added to the Added to Plan list on the right side of plans page
Add users to the procedures
Select and add 1 User to the first procedure and select and add 2 different Users to the second procedure in the plan
User is added to the procedure by selecting it from the "Select User to Assign" drop-down menu below the procedure title.
Refresh the page
Behavior:
After refreshing the page, the “Select User to Assign” field is empty.
Expected behavior:
After refreshing the page, the “Select User to Assign” field should display any previously added user.
Solution notes
Implement AssignUsersToPlanProcedureCommandHandler in RL.Backend
Hook up endpoint (AssignUsersToPlanProcedure in PlanProcedureController) to the frontend so when a user is selected, they are correctly assigned to that procedure a. Note: you can use the odata expand ($expand) operation to include related data for a given object
Create an automated test in the interview-automated-tests project, that will: a. Create a plan b. add a procedure to the plan c. add a user to the plan d. refresh the page e. verify that the user is still selected
Issue description / Bug report
Steps to reproduce:
Create a new Plan
This happens when you click Start on the home page of the frontend project when it's running.
List of procedures available for the plan load are loaded automatically when a plan is created. They will show up in Procedures list (left column of the Plan).
Add 2 procedures to the Plan
Procedures are added to a plan when you click a checkbox from the Procedures list on the left side of the plans component.
After being added, the procedure checkbox will show up selected along with being added to the Added to Plan list on the right side of plans page
Add users to the procedures
Select and add 1 User to the first procedure and select and add 2 different Users to the second procedure in the plan
User is added to the procedure by selecting it from the "Select User to Assign" drop-down menu below the procedure title.
Refresh the page
Behavior:
After refreshing the page, the “Select User to Assign” field is empty.
Expected behavior:
After refreshing the page, the “Select User to Assign” field should display any previously added user.
Solution notes
Implement AssignUsersToPlanProcedureCommandHandler in RL.Backend
Hook up endpoint (AssignUsersToPlanProcedure in PlanProcedureController) to the frontend so when a user is selected, they are correctly assigned to that procedure a. Note: you can use the odata expand ($expand) operation to include related data for a given object
Create an automated test in the interview-automated-tests project, that will: a. Create a plan b. add a procedure to the plan c. add a user to the plan d. refresh the page e. verify that the user is still selected