Skip to content

Commit 8b8dd8d

Browse files
committed
M4 updates
1 parent 88d22ea commit 8b8dd8d

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

Instructions/Labs/LAB_AK_04_develop_unit_tests_xunit.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -321,15 +321,15 @@ Use the following steps to complete this section of the exercise:
321321
322322
Notice the following updates in the Chat view and code editor:
323323
324-
- The Chat view displays a message indicating that it wants to run a command in the terminal:
324+
- The agent displays status messages as it completes the requested tasks. The first task will be to create the folder structure in the UnitTests project. The agent may create the required folders, or it may pause to ask for confirmation before proceeding.
325325
326326
![Screenshot showing the Chat view in Agent mode.](./Media/m04-github-copilot-agent-mode-terminal-command-mkdir.png)
327327
328328
- The UnitTests.csproj file is open in the code editor with the following changes:
329329
330330
![Screenshot showing updates to the UnitTests.csproj file in the code editor.](./Media/m04-github-copilot-agent-mode-code-editor-update.png)
331331
332-
1. In the Chat view, to run the command in the terminal, select **Continue**.
332+
1. If the agent asks fr permission to run the make directory command in the terminal, select **Continue**.
333333
334334
When you select **Continue**, GitHub Copilot completes the following actions:
335335
@@ -338,7 +338,12 @@ Use the following steps to complete this section of the exercise:
338338
339339
1. Take a moment to review the updates.
340340
341-
1. In the Chat view, to accept all changes, select **Keep**, and then select **Done**.
341+
You should see the following updates in the editor:
342+
343+
- The `UnitTests` project now includes a reference to `Library.Infrastructure.csproj`.
344+
- The `GetLoan.cs` file is created in the `Infrastructure\JsonLoanRepository` folder.
345+
346+
1. In the Chat view, to accept all changes, select **Keep**.
342347
343348
1. In the SOLUTION EXPLORER view, expand the `Infrastructure\JsonLoanRepository` folder structure.
344349
@@ -454,7 +459,7 @@ Use the following steps to complete this section of the exercise:
454459
455460
```plaintext
456461
457-
@workspace Create fields and a class constructor for the `GetLoan.cs` file. The class will be used to create unit tests for the GetLoan method in the `JsonLoanRepository.cs` file. Create the following private readonly fields: `_mockLoanRepository`, `_jsonLoanRepository`, `_configuration`, and `_jsonData`. Instantiate the fields in the `GetLoanTest` constructor. Use `ConfigurationBuilder` to create a `_configuration` object that can be used to instantiate the JsonData object.
462+
#codebase Create fields and a class constructor for the `GetLoan.cs` file. The class will be used to create unit tests for the GetLoan method in the `JsonLoanRepository.cs` file. Create the following private readonly fields: `_mockLoanRepository`, `_jsonLoanRepository`, `_configuration`, and `_jsonData`. Instantiate the fields in the `GetLoanTest` constructor. Use `ConfigurationBuilder` to create a `_configuration` object that can be used to instantiate the JsonData object.
458463
459464
```
460465
@@ -501,7 +506,7 @@ Use the following steps to complete this section of the exercise:
501506
502507
> **NOTE**: Sample code in the following step shows updates that correct the following issues:
503508
504-
- If there's a conflict between the `UnitTests.Infrastructure.JsonLoanRepository` namespace and the `JsonLoanRepository` type specified in the code, you should update the namespace in GetLoans.cs to eliminate the conflict. The pattern used in the `ReturnLoan.cs` and `RenewMembership.cs` files.
509+
- If there's a conflict between the `UnitTests.Infrastructure.JsonLoanRepository` namespace and the `JsonLoanRepository` type specified in the code, you should update the namespace in GetLoans.cs to eliminate the conflict. Follow the pattern used in the `ReturnLoan.cs` and `RenewMembership.cs` files.
505510
506511
- If `ILoanRepository` isn't recognized in your code, you may need to add a `using` directive for `Library.ApplicationCore` to the top of the file.
507512

0 commit comments

Comments
 (0)