Skip to content

Commit c28f0a0

Browse files
committed
remove spce in image files and rename them with hyphen
1 parent 4dfb796 commit c28f0a0

File tree

68 files changed

+83
-107
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+83
-107
lines changed

WebAPIDemoComponents/Pages/Blogs/ConfiguringAuthenticationInFunctionalTestingInASPNET.razor

+5-29
Original file line numberDiff line numberDiff line change
@@ -54,43 +54,34 @@
5454

5555
<GithubGistSnippet Title="Configure Authentication in Web API" UserId="fingers10" FileName="c2990ce7edadccdcd05b4c239a07710b"></GithubGistSnippet>
5656

57-
58-
59-
6057
<p>
6158
Now we need to decorate the endpoints with <ContentHighlight>[Authorize]</ContentHighlight> attribute as shown below.
6259
</p>
6360

6461
<figure>
6562
<caption>Decorating Endpoints with Authorize Attribute</caption>
66-
<img src="./image/blogs/webapi/configuring-authentication-in-functional-testing-in-asp-net-webapi/Decorating With Authorize.png" alt="Decorating With Authorize" class="[ w-full ]" />
63+
<img src="./image/blogs/webapi/configuring-authentication-in-functional-testing-in-asp-net-webapi/decorating-with-authorize.png" alt="decorating-with-authorize" class="[ w-full ]" />
6764
</figure>
6865

69-
70-
7166
<p>
7267
Now if we run our tests, all our tests will fail with <ContentHighlight>401 UnAuthorized</ContentHighlight> as shown below.
7368
</p>
7469

7570
<figure>
7671
<caption>Failing Tests after enabling Authentication</caption>
77-
<img src="./image/blogs/webapi/configuring-authentication-in-functional-testing-in-asp-net-webapi/Failed Test.png" alt="Failed Test" class="[ w-full ]" />
72+
<img src="./image/blogs/webapi/configuring-authentication-in-functional-testing-in-asp-net-webapi/failed-test.png" alt="failed-test" class="[ w-full ]" />
7873
</figure>
7974

80-
81-
8275
<p>
8376
Lets quickly verify if we are getting <ContentHighlight>401 UnAuthorized</ContentHighlight> from swagger. Here is the swagger response from the
8477
<ContentHighlight>WeatherForecast</ContentHighlight> endpoint.
8578
</p>
8679

8780
<figure>
8881
<caption>Swagger output from Endpoint to return values from API</caption>
89-
<img src="./image/blogs/webapi/configuring-authentication-in-functional-testing-in-asp-net-webapi/Swagger Response.png" alt="Swagger Response" class="[ w-full ]" />
82+
<img src="./image/blogs/webapi/configuring-authentication-in-functional-testing-in-asp-net-webapi/swagger-response.png" alt="swagger-response" class="[ w-full ]" />
9083
</figure>
9184

92-
93-
9485
<h3 id="setup-authentication">Setup Authentication</h3>
9586

9687
<p>
@@ -106,7 +97,6 @@
10697

10798
<GithubGistSnippet Title="Empty Auth Claims Provider to be used in Functional Test Authentication" UserId="fingers10" FileName="df72e5ae9e3dd1b1c6bb70e3286d27d4"></GithubGistSnippet>
10899

109-
110100
</li>
111101
<li>
112102
<p>
@@ -115,7 +105,6 @@
115105

116106
<GithubGistSnippet Title="Configure Test Auth Handler for ASP.NET WEB API Functional Test" UserId="fingers10" FileName="d85385b1a82bf0337ce8fc04661114c2"></GithubGistSnippet>
117107

118-
119108
</li>
120109
<li>
121110
<p>
@@ -124,7 +113,6 @@
124113

125114
<GithubGistSnippet Title="Register Test Authentication Scheme in Custom Web Application Factory" UserId="fingers10" FileName="259d4ae672e4e28a882561f0f5e380bc"></GithubGistSnippet>
126115

127-
128116
</li>
129117
<li>
130118
<p>
@@ -142,11 +130,9 @@
142130

143131
<figure>
144132
<caption>Authorize Passing Test</caption>
145-
<img src="./image/blogs/webapi/configuring-authentication-in-functional-testing-in-asp-net-webapi/Authorize Passing Test.png" alt="Authorize Passing Test" class="[ w-full ]" />
133+
<img src="./image/blogs/webapi/configuring-authentication-in-functional-testing-in-asp-net-webapi/authorize-passing-test.png" alt="authorize-passing-test" class="[ w-full ]" />
146134
</figure>
147135

148-
149-
150136
<h3 id="setup-authorization">Setup Authorization</h3>
151137

152138
<p>
@@ -167,7 +153,6 @@
167153

168154
<GithubGistSnippet Title="Configuring Claims in ASP.NET WEB API Functional Test" UserId="fingers10" FileName="56e8df43e30282657e6ba7dde2c7a44e"></GithubGistSnippet>
169155

170-
171156
</li>
172157
<li>
173158
<p>
@@ -177,7 +162,6 @@
177162

178163
<GithubGistSnippet Title="Extension Method to create HttpClient with Claims" UserId="fingers10" FileName="65bfda2357027941469410a5f2edb4a6"></GithubGistSnippet>
179164

180-
181165
</li>
182166
</ol>
183167

@@ -193,8 +177,6 @@
193177

194178
<GithubGistSnippet Title="Running WEB API Functional Test with Admin Role" UserId="fingers10" FileName="83bc66386f47212e2a0b13f805055e0c"></GithubGistSnippet>
195179

196-
197-
198180
<p>
199181
Thats it. We are done with setup. Now the tests will run in the following flow.
200182
</p>
@@ -210,22 +192,16 @@
210192
<li>Test Code Execution.</li>
211193
</ol>
212194

213-
214-
215195
<p>
216196
Now lets run the test and see the result.
217197
</p>
218198

219199
<figure>
220-
<img src="./image/blogs/webapi/configuring-authentication-in-functional-testing-in-asp-net-webapi/All Passing Test.png" alt="All Passing Test" class="[ w-full ]" />
200+
<img src="./image/blogs/webapi/configuring-authentication-in-functional-testing-in-asp-net-webapi/all-passing-test.png" alt="all-passing-test" class="[ w-full ]" />
221201
</figure>
222202

223-
224-
225203
<p>We can do the same for <ContentHighlight>Guest Claims</ContentHighlight> for another test.</p>
226204

227-
228-
229205
<h3 id="summary">Summary</h3>
230206

231207
<p>

WebAPIDemoComponents/Pages/Blogs/FakingDependenciesInFunctionalTestingInASPNET.razor

+4-4
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565

6666

6767
<figure>
68-
<img src="./image/blogs/webapi/faking-dependencies-in-functional-testing-in-asp-net-webapi/Failing Test.png" alt="Failing Test" class="[ w-full ]" />
68+
<img src="./image/blogs/webapi/faking-dependencies-in-functional-testing-in-asp-net-webapi/failing-test.png" alt="failing-test" class="[ w-full ]" />
6969
</figure>
7070

7171

@@ -79,14 +79,14 @@
7979

8080
<figure>
8181
<caption>Endpoint to return values from Database</caption>
82-
<img src="./image/blogs/webapi/faking-dependencies-in-functional-testing-in-asp-net-webapi/From Database Endpoint.png" alt="From Database Endpoint" class="[ w-full ]" />
82+
<img src="./image/blogs/webapi/faking-dependencies-in-functional-testing-in-asp-net-webapi/from-database-endpoint.png" alt="from-database-endpoint" class="[ w-full ]" />
8383
</figure>
8484

8585

8686

8787
<figure>
8888
<caption>Swagger output from Endpoint to return values from Database</caption>
89-
<img src="./image/blogs/webapi/faking-dependencies-in-functional-testing-in-asp-net-webapi/Swagger Response.png" alt="Swagger Response" class="[ w-full ]" />
89+
<img src="./image/blogs/webapi/faking-dependencies-in-functional-testing-in-asp-net-webapi/swagger-response.png" alt="swagger-response" class="[ w-full ]" />
9090
</figure>
9191

9292

@@ -215,7 +215,7 @@
215215

216216

217217
<figure>
218-
<img src="./image/blogs/webapi/faking-dependencies-in-functional-testing-in-asp-net-webapi/Passing Test.png" alt="Passing Test" class="[ w-full ]" />
218+
<img src="./image/blogs/webapi/faking-dependencies-in-functional-testing-in-asp-net-webapi/passing-test.png" alt="passing-test" class="[ w-full ]" />
219219
</figure>
220220

221221

WebAPIDemoComponents/Pages/Blogs/FunctionalTestingInASPNET.razor

+8-8
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
</p>
8484

8585
<figure>
86-
<img src="./image/blogs/webapi/functional-testing-your-asp-net-webapi/Configure new project.png" alt="Configure new project" class="[ w-full ]" />
86+
<img src="./image/blogs/webapi/functional-testing-your-asp-net-webapi/configure-new-project.png" alt="configure-new-project" class="[ w-full ]" />
8787
</figure>
8888

8989

@@ -93,7 +93,7 @@
9393
</p>
9494

9595
<figure>
96-
<img src="./image/blogs/webapi/functional-testing-your-asp-net-webapi/New project.png" alt="New project" class="[ w-1/2 ]" />
96+
<img src="./image/blogs/webapi/functional-testing-your-asp-net-webapi/new-project.png" alt="new-project" class="[ w-1/2 ]" />
9797
</figure>
9898

9999

@@ -104,7 +104,7 @@
104104
</p>
105105

106106
<figure>
107-
<img src="./image/blogs/webapi/functional-testing-your-asp-net-webapi/API response.png" alt="API response" class="[ w-full ]" />
107+
<img src="./image/blogs/webapi/functional-testing-your-asp-net-webapi/api-response.png" alt="api-response" class="[ w-full ]" />
108108
</figure>
109109

110110

@@ -120,7 +120,7 @@
120120
<p>Create a <ContentHighlight>XUnit</ContentHighlight> Test Project.</p>
121121

122122
<figure>
123-
<img src="./image/blogs/webapi/functional-testing-your-asp-net-webapi/Create XUnit Project.png" alt="Create XUnit Project" class="[ w-1/2 ]" />
123+
<img src="./image/blogs/webapi/functional-testing-your-asp-net-webapi/create-xunit-project.png" alt="create-xunit-project" class="[ w-1/2 ]" />
124124
</figure>
125125

126126

@@ -131,7 +131,7 @@
131131
<p>Add <ContentHighlight>Project Reference to your API project</ContentHighlight> in your test project.</p>
132132

133133
<figure>
134-
<img src="./image/blogs/webapi/functional-testing-your-asp-net-webapi/Test project with Nuget and Project Reference.png" alt="Test project with Nuget and Project Reference" class="[ w-full ]" />
134+
<img src="./image/blogs/webapi/functional-testing-your-asp-net-webapi/test-project-with-nuget-and-project-reference.png" alt="test-project-with-nuget-and-project-reference" class="[ w-full ]" />
135135
</figure>
136136

137137

@@ -144,7 +144,7 @@
144144
</p>
145145

146146
<figure>
147-
<img src="./image/blogs/webapi/functional-testing-your-asp-net-webapi/Add partial modifier to Program.png" alt="Add partial modifier to Program" class="[ w-full ]" />
147+
<img src="./image/blogs/webapi/functional-testing-your-asp-net-webapi/add-partial-modifier-to-program.png" alt="add-partial-modifier-to-program" class="[ w-full ]" />
148148
</figure>
149149

150150

@@ -210,7 +210,7 @@
210210
</p>
211211

212212
<figure>
213-
<img src="./image/blogs/webapi/functional-testing-your-asp-net-webapi/Passing Functional Test.png" alt="Passing Functional Test" class="[ w-full ]" />
213+
<img src="./image/blogs/webapi/functional-testing-your-asp-net-webapi/passing-functional-test.png" alt="passing-functional-test" class="[ w-full ]" />
214214
</figure>
215215

216216

@@ -262,7 +262,7 @@
262262
</p>
263263

264264
<figure>
265-
<img src="./image/blogs/webapi/functional-testing-your-asp-net-webapi/Passing Refactored Functional Test.png" alt="Passing Refactored Functional Test" class="[ w-full ]" />
265+
<img src="./image/blogs/webapi/functional-testing-your-asp-net-webapi/passing-refactored-functional-test.png" alt="passing-refactored-functional-test" class="[ w-full ]" />
266266
</figure>
267267

268268

WebAPIDemoComponents/Pages/Blogs/HealthChecksInASPNET.razor

+5-5
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
</p>
7373

7474
<figure>
75-
<img src="./image/blogs/webapi/implementing-health-checks-in-asp-net-webapi/Simple Health Check Response.png" alt="Simple Health Check Response" class="[ w-full ]" />
75+
<img src="./image/blogs/webapi/implementing-health-checks-in-asp-net-webapi/simple-health-check-response.png" alt="simple-health-check-response" class="[ w-full ]" />
7676
</figure>
7777

7878
<h4 class="[ font-semibold text-md ]">Using IHealthCheck Interface</h4>
@@ -116,7 +116,7 @@
116116
</p>
117117

118118
<figure>
119-
<img src="./image/blogs/webapi/implementing-health-checks-in-asp-net-webapi/Degraded Health Check Response.png" alt="Degraded Health Check Response" class="[ w-full ]" />
119+
<img src="./image/blogs/webapi/implementing-health-checks-in-asp-net-webapi/degraded-health-check-response.png" alt="degraded-health-check-response" class="[ w-full ]" />
120120
</figure>
121121

122122
<p>
@@ -144,7 +144,7 @@
144144
<GithubGistSnippet Title="Adding Health Check UI" UserId="fingers10" FileName="c8f0376c5f74dc0e70b5903edc80f380"></GithubGistSnippet>
145145

146146
<figure>
147-
<img src="./image/blogs/webapi/implementing-health-checks-in-asp-net-webapi/Health UI Response.png" alt="Health UI Response" class="[ w-full ]" />
147+
<img src="./image/blogs/webapi/implementing-health-checks-in-asp-net-webapi/health-ui-response.png" alt="health-ui-response" class="[ w-full ]" />
148148
</figure>
149149

150150
<p>
@@ -153,7 +153,7 @@
153153
</p>
154154

155155
<figure>
156-
<img src="./image/blogs/webapi/implementing-health-checks-in-asp-net-webapi/Health Check Dashboard.png" alt="Health Check Dashboard" class="[ w-full ]" />
156+
<img src="./image/blogs/webapi/implementing-health-checks-in-asp-net-webapi/health-check-dashboard.png" alt="health-check-dashboard" class="[ w-full ]" />
157157
</figure>
158158

159159
<p>
@@ -164,7 +164,7 @@
164164
<GithubGistSnippet Title="Health Check Dashboard Custom CSS and Registration" UserId="fingers10" FileName="07a532f24a685d6d442fa05cb43b86e4"></GithubGistSnippet>
165165

166166
<figure>
167-
<img src="./image/blogs/webapi/implementing-health-checks-in-asp-net-webapi/Health Check Dashboard Custom UI.png" alt="Health Check Dashboard Custom UI" class="[ w-full ]" />
167+
<img src="./image/blogs/webapi/implementing-health-checks-in-asp-net-webapi/health-check-dashboard-custom-ui.png" alt="health-check-dashboard-custom-ui" class="[ w-full ]" />
168168
</figure>
169169

170170
<h4 class="[ font-semibold text-md ]">Securing Health Check Endpoints</h4>

0 commit comments

Comments
 (0)