Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
Upgrade test assemblies to .NET 5.0 to take advantage of serializati…
Browse files Browse the repository at this point in the history
…on fixes that allow JSON to be deserialized into classes without default constructors
  • Loading branch information
jonclare committed Oct 26, 2020
1 parent 208f764 commit 1bd70bd
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 74 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
<OutputType>Exe</OutputType>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
using Shopping.Domain.Aggregates;
using Shopping.Domain.Commands;
using Shopping.Domain.Events;
using Shopping.Infrastructure.JsonSerialization;

namespace Shopping.Infrastructure.Tests
{
Expand Down Expand Up @@ -58,8 +57,6 @@ public async Task PersistedRoundTripTest()
private static IEventSerializer CreateJsonSerializer(IEventTypeMapping eventTypeMapping)
{
var serializer = new JsonEventSerializer();
serializer.RegisterConverter(new ShoppingCartCreatedConverter());
serializer.RegisterConverter(new ItemAddedToShoppingCartConverter());

serializer.RegisterEventTypeMappings(eventTypeMapping);

Expand Down

This file was deleted.

This file was deleted.

0 comments on commit 1bd70bd

Please sign in to comment.