Commit 22b440f
committed
fix(ch11): Resolve cart initialization bug, stabilize configuration tests, and update Key Vault setup
- Fixed a null reference issue in RefreshShoppingCart() by returning early when the user context is not yet available during first sign-in
- Updated database initialization script to retrieve the connection string from Azure Key Vault
- Updated README to reflect the new Key Vault–based initialization process
- Added .gitignore files to solutions that were missing them
- Excluded the script-generated tenant configuration file from source control
- Refactored configuration integration tests to avoid relying on real application settings
- Replaced Guid.NewGuid() with fixed GUIDs in EF Core seed data where required, since EF cannot translate Guid.NewGuid() during migrations
These changes improve reliability of the sample application, align the database setup with the Key Vault security model introduced in Chapter 11 and later chapters, and ensure tests remain stable as configuration evolves.1 parent 686ee42 commit 22b440f
34 files changed
Lines changed: 2858 additions & 407 deletions
File tree
- ch09/CleanCart.NET/src
- Infrastructure/Persistence/EntityFramework
- Presentation.BSA/Components/ShoppingCartIcon
- ch10/CleanCart.NET
- src
- Infrastructure/Persistence/EntityFramework
- Presentation.BSA/Components/ShoppingCartIcon
- ch11/CleanCart.NET
- .config
- scripts
- src
- Infrastructure/Persistence/EntityFramework
- Presentation.BSA/Components/ShoppingCartIcon
- tst/Presentation.IntegrationTests
- ch12/CleanCart.NET
- scripts
- src
- Infrastructure/Persistence/EntityFramework
- Presentation.BSA/Components/ShoppingCartIcon
- tst/Presentation.IntegrationTests
- ch13/CleanCart.NET
- scripts
- src
- Infrastructure/Persistence/EntityFramework
- Presentation.BSA/Components/ShoppingCartIcon
- tst/Presentation.IntegrationTests
- ch14/CleanCart.NET
- scripts
- src
- Infrastructure/Persistence/EntityFramework
- Presentation.BSA/Components/ShoppingCartIcon
- tst/Presentation.IntegrationTests
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
0 commit comments