File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 - name: Run Unit Tests
2929 run: |
3030 echo "ASPNETCORE_ENVIRONMENT are > ${ASPNETCORE_ENVIRONMENT}"
31- dotnet test "EstateReportingAPI.Tests\EstateReportingAPI.Tests.csproj"
32-
33- - name: Run Integration Tests
34- run: |
35- dotnet test "EstateReportingAPI.IntegrationTests\EstateReportingAPI.IntegrationTests.csproj"
31+ dotnet test "EstateReportingAPI.Tests\EstateReportingAPI.Tests.csproj"
3632
3733 - name: Publish Images to Docker Hub - Pre Release
3834 if: ${{ github.event.release.prerelease == true }}
Original file line number Diff line number Diff line change 22using HealthChecks.UI.Client;
33using Lamar;
44using Microsoft.AspNetCore.Diagnostics.HealthChecks;
5- using NLog.Extensions.Logging;
65using Shared.Extensions;
76using Shared.General;
87using Shared.Logger;
1110
1211namespace EstateReportingAPI
1312{
14- using BusinessLogic;
1513 using Shared.Middleware;
1614
1715 [ExcludeFromCodeCoverage]
1816 public class Startup
1917 {
2018 public static IConfigurationRoot Configuration { get; set; }
2119 public static IWebHostEnvironment WebHostEnvironment { get; set; }
22-
2320 public static IServiceProvider ServiceProvider { get; set; }
24-
2521 public static Container Container;
22+
2623 public Startup(IWebHostEnvironment webHostEnvironment)
2724 {
2825 IConfigurationBuilder builder = new ConfigurationBuilder().SetBasePath(webHostEnvironment.ContentRootPath)
@@ -49,11 +46,10 @@ public void ConfigureContainer(ServiceRegistry services)
4946
5047 public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerFactory loggerFactory)
5148 {
52- if (env.IsDevelopment())
53- {
49+ if (env.IsDevelopment()) {
5450 app.UseDeveloperExceptionPage();
5551 }
56-
52+
5753 Microsoft.Extensions.Logging.ILogger logger = loggerFactory.CreateLogger("EstateManagement");
5854
5955 Logger.Initialise(logger);
You can’t perform that action at this time.
0 commit comments