• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mehdihadeli / food-delivery-microservices / 28675368858

03 Jul 2026 05:34PM UTC coverage: 16.207% (-46.9%) from 63.071%
28675368858

push

github

web-flow
feat: replace masstransit with wolverine (#253)

337 of 3348 branches covered (10.07%)

Branch coverage included in aggregate %.

125 of 258 new or added lines in 26 files covered. (48.45%)

1396 of 7345 relevant lines covered (19.01%)

0.39 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/BuildingBlocks/BuildingBlocks.OpenApi/AspnetOpenApi/Extensions/WebApplicationExtensions.cs
1
using BuildingBlocks.Core.Web.Extensions;
2
using Microsoft.AspNetCore.Builder;
3
using Microsoft.AspNetCore.Http;
4
using Microsoft.Extensions.Hosting;
5
using Scalar.AspNetCore;
6

7
namespace BuildingBlocks.OpenApi.AspnetOpenApi.Extensions;
8

9
public static class WebApplicationExtensions
10
{
11
    public static WebApplication UseAspnetOpenApi(this WebApplication app)
12
    {
13
        // show in both production and development
NEW
14
        app.MapGet("/", () => $"{app.Environment.ApplicationName} is started.").ExcludeFromDescription();
×
15

16
        if (!app.Environment.IsDevelopment())
×
17
            return app;
×
18

19
        // we should not see openapi docs in none development mode
NEW
20
        app.MapOpenApi();
×
21

22
        var descriptions = app.DescribeApiVersions();
×
23

24
        // Add swagger ui
25
        app.UseSwaggerUI(options =>
×
26
        {
×
27
            // build a swagger endpoint for each discovered API version
×
28
            foreach (var description in descriptions)
×
29
            {
×
30
                var openApiUrl = $"/openapi/{description.GroupName}.json";
×
31
                var name = description.GroupName.ToUpperInvariant();
×
32
                options.SwaggerEndpoint(openApiUrl, name);
×
33
            }
×
34
        });
×
35

36
        // Add scalar ui
37
        // https://github.com/scalar/scalar/blob/fbef7e1ee82d7c9e84bc42407e309642dcec5552/documentation/integrations/aspnetcore.md
38
        app.MapScalarApiReference(scalarOptions =>
×
39
        {
×
40
            scalarOptions.WithOpenApiRoutePattern("/openapi/{documentName}.json");
×
41
            scalarOptions.Theme = ScalarTheme.BluePlanet;
×
42
            // Disable default fonts to avoid download unnecessary fonts
×
43
            scalarOptions.DefaultFonts = false;
×
44
        });
×
45

46
        return app;
×
47
    }
48
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc