Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .github/workflows/createrelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@ jobs:
- name: Run Unit Tests
run: |
echo "ASPNETCORE_ENVIRONMENT are > ${ASPNETCORE_ENVIRONMENT}"
dotnet test "EstateReportingAPI.Tests\EstateReportingAPI.Tests.csproj"

- name: Run Integration Tests
run: |
dotnet test "EstateReportingAPI.IntegrationTests\EstateReportingAPI.IntegrationTests.csproj"
dotnet test "EstateReportingAPI.Tests\EstateReportingAPI.Tests.csproj"

- name: Publish Images to Docker Hub - Pre Release
if: ${{ github.event.release.prerelease == true }}
Expand Down
10 changes: 3 additions & 7 deletions EstateReportingAPI/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using HealthChecks.UI.Client;
using Lamar;
using Microsoft.AspNetCore.Diagnostics.HealthChecks;
using NLog.Extensions.Logging;
using Shared.Extensions;
using Shared.General;
using Shared.Logger;
Expand All @@ -11,18 +10,16 @@

namespace EstateReportingAPI
{
using BusinessLogic;
using Shared.Middleware;

[ExcludeFromCodeCoverage]
public class Startup
{
public static IConfigurationRoot Configuration { get; set; }
public static IWebHostEnvironment WebHostEnvironment { get; set; }

public static IServiceProvider ServiceProvider { get; set; }

public static Container Container;

public Startup(IWebHostEnvironment webHostEnvironment)
{
IConfigurationBuilder builder = new ConfigurationBuilder().SetBasePath(webHostEnvironment.ContentRootPath)
Expand All @@ -49,11 +46,10 @@ public void ConfigureContainer(ServiceRegistry services)

public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerFactory loggerFactory)
{
if (env.IsDevelopment())
{
if (env.IsDevelopment()) {
app.UseDeveloperExceptionPage();
}

Microsoft.Extensions.Logging.ILogger logger = loggerFactory.CreateLogger("EstateManagement");

Logger.Initialise(logger);
Expand Down
Loading