Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sj-net committed Sep 30, 2024
1 parent 6db74f6 commit 5dc1728
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/dotnet/web_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ grand_parent: My Docs

### Return all routes in the Web API.

``` csharp
``` c#
endpoints.MapGet("/api/debug/routes", (IEnumerable<EndpointDataSource> endpointSources) =>
{
var t = endpointSources.SelectMany(_ => _.Endpoints)
Expand Down
2 changes: 1 addition & 1 deletion docs/dotnet_framework/net_standard.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ grand_parent: My Docs
### How to add HealthChecks to .Net Framework
---

``` csharp
``` c#
using Microsoft.Extensions.Diagnostics.HealthChecks;
namespace Microsoft.Extensions.DependencyInjection
{
Expand Down
2 changes: 1 addition & 1 deletion docs/testing/moq.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ grand_parent: My Docs

- We need to set the Controller Context for the controller under test. From that the HTTPContext is pulled.

```csharp
```c#
public static ControllerContext GetControllerContext(Controller controller)
{
var mockHttpContext = new Mock<HttpContextBase>();
Expand Down

0 comments on commit 5dc1728

Please sign in to comment.