Skip to content

Commit

Permalink
Upgrade to .NET 8
Browse files Browse the repository at this point in the history
- Changed project targets to net8.0
- Upgraded package dependencies to the latest released versions
- Changed from spaces to tab indentation in some files
  • Loading branch information
douggish committed May 2, 2024
1 parent b96ff7f commit 09f5b2b
Show file tree
Hide file tree
Showing 26 changed files with 1,215 additions and 1,181 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.414
dotnet-version: 8.0.204

- name: Build
env:
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
if: always()
with:
name: integration-test-results
path: IO.Eventuate.Tram.IntegrationTests/bin/Release/net6.0/TestResults
path: IO.Eventuate.Tram.IntegrationTests/bin/Release/net8.0/TestResults

- name: Publish nuget package
# Don't publish nuget packages for builds triggered by pull requests (pull requests from forks won't have access to secrets anyway)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>

<IsPackable>false</IsPackable>

Expand All @@ -23,12 +23,12 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.16" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.0" />
<PackageReference Include="Confluent.Kafka" Version="2.1.1" />
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.4" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="Confluent.Kafka" Version="2.3.0" />
<PackageReference Include="NUnit" Version="4.1.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,33 @@

namespace IO.Eventuate.Tram.IntegrationTests.TestFixtures
{
[TestFixture]
public class BadSchemaIntegrationTests : IntegrationTestsBase
{
[SetUp]
public void Setup()
{
TestSetup("badschema", false, EventuateKafkaConsumerConfigurationProperties.Empty());
}
[TestFixture]
public class BadSchemaIntegrationTests : IntegrationTestsBase
{
[SetUp]
public void Setup()
{
TestSetup("badschema", false, EventuateKafkaConsumerConfigurationProperties.Empty());
}

[TearDown]
public void TearDown()
{
DisposeTestHost();
}
[TearDown]
public void TearDown()
{
DisposeTestHost();
}

[Test]
public void Publish_DatabaseSchemaNotCreated_ThrowsException()
{
// Arrange
TestMessageType1 msg1 = new TestMessageType1("Msg1", 1, 1.2);
TestEventConsumer consumer = GetTestConsumer();
[Test]
public void Publish_DatabaseSchemaNotCreated_ThrowsException()
{
// Arrange
TestMessageType1 msg1 = new TestMessageType1("Msg1", 1, 1.2);
TestEventConsumer consumer = GetTestConsumer();

// Act
Assert.Throws<DbUpdateException>(delegate ()
{
GetTestPublisher().Publish(AggregateType12, AggregateType12, new List<IDomainEvent> { msg1 });
});
}
}
}
// Act
Assert.Throws<DbUpdateException>(delegate()
{
GetTestPublisher().Publish(AggregateType12, AggregateType12, new List<IDomainEvent> { msg1 });
});
}
}
}
Loading

0 comments on commit 09f5b2b

Please sign in to comment.