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

samsmithnz / RepoGovernance / 16895999055

12 Aug 2025 12:54AM UTC coverage: 44.176% (-27.2%) from 71.373%
16895999055

push

github

web-flow
Add repository details page with recommendation ignore functionality (#1001)

* Initial plan

* Implement repo details page with ignore functionality - core models and controllers

Co-authored-by: samsmithnz <8389039+samsmithnz@users.noreply.github.com>

* Complete repo details and ignore functionality with comprehensive tests

Co-authored-by: samsmithnz <8389039+samsmithnz@users.noreply.github.com>

* Refactor tests from MOQ to NSubstitute and update coding guidelines

Co-authored-by: samsmithnz <8389039+samsmithnz@users.noreply.github.com>

* Fix to compile error

* Fix to build

* Fix to build

* updated test

* Fix NSubstitute mocking issue by introducing ISummaryItemsServiceApiClient interface

Co-authored-by: samsmithnz <8389039+samsmithnz@users.noreply.github.com>

* Fix NSubstitute mocking issue by introducing IIgnoredRecommendationsDA interface

Co-authored-by: samsmithnz <8389039+samsmithnz@users.noreply.github.com>

* Refactor architecture: Move data access operations from Web to Service layer

Co-authored-by: samsmithnz <8389039+samsmithnz@users.noreply.github.com>

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: samsmithnz <8389039+samsmithnz@users.noreply.github.com>
Co-authored-by: Sam Smith <samsmithnz@gmail.com>

392 of 1078 branches covered (36.36%)

Branch coverage included in aggregate %.

75 of 272 new or added lines in 6 files covered. (27.57%)

1015 of 2107 relevant lines covered (48.17%)

26.51 hits per line

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

0.0
/src/RepoGovernance.Web/Program.cs
1
using RepoGovernance.Web.Services;
2

3
var builder = WebApplication.CreateBuilder(args);
×
4

5
// Add services to the container.
6
builder.Services.AddControllersWithViews();
×
7
builder.Services.AddApplicationInsightsTelemetry(builder.Configuration["APPINSIGHTS_CONNECTIONSTRING"]);
×
8

9
//Add DI for the service api client 
NEW
10
builder.Services.AddScoped<ISummaryItemsServiceApiClient, SummaryItemsServiceApiClient>();
×
11

12
var app = builder.Build();
×
13

14
// Configure the HTTP request pipeline.
15
if (!app.Environment.IsDevelopment())
×
16
{
×
17
    app.UseExceptionHandler("/Home/Error");
×
18
    // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
19
    app.UseHsts();
×
20
}
×
21

22
app.UseHttpsRedirection();
×
23
app.UseStaticFiles();
×
24

25
app.UseRouting();
×
26

27
app.UseAuthorization();
×
28

29
app.MapControllerRoute(
×
30
    name: "default",
×
31
    pattern: "{controller=Home}/{action=Index}/{id?}");
×
32

33
app.Run();
×
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

© 2025 Coveralls, Inc