Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuergi committed Jan 13, 2025
1 parent c5fbd2d commit 3c3468e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 47 deletions.
13 changes: 3 additions & 10 deletions test/MeshWeaver.Import.Test/ImportMappingTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq;
using System.Reactive.Linq;
using System.Threading;
using System.Threading.Tasks;
Expand Down Expand Up @@ -30,14 +28,9 @@ MessageHubConfiguration configuration
)
);

protected override MessageHubConfiguration ConfigureRouter(MessageHubConfiguration conf, Dictionary<string, Type> types)
protected override MessageHubConfiguration ConfigureRouter(MessageHubConfiguration conf)
{
return base.ConfigureRouter(conf, new Dictionary<string, Type>()
{
{ new ClientAddress().Type, typeof(ClientAddress) },
{ new HostAddress().Type, typeof(HostAddress) },
{ new RouterAddress().Type, typeof(RouterAddress) }
})
return base.ConfigureRouter(conf)
.WithHostedHub(
new TestDomain.ImportAddress(),
config =>
Expand Down
13 changes: 3 additions & 10 deletions test/MeshWeaver.Import.Test/ImportTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq;
using System.Reactive.Linq;
using System.Text.Json;
using System.Threading;
Expand All @@ -23,14 +21,9 @@ namespace MeshWeaver.Import.Test;
public class ImportTest(ITestOutputHelper output) : HubTestBase(output)
{
protected override MessageHubConfiguration ConfigureRouter(
MessageHubConfiguration configuration, Dictionary<string, Type> types)
MessageHubConfiguration configuration)
{
return base.ConfigureRouter(configuration, new Dictionary<string, Type>()
{
{ new ClientAddress().Type, typeof(ClientAddress) },
{ new HostAddress().Type, typeof(HostAddress) },
{ new RouterAddress().Type, typeof(RouterAddress) }
})
return base.ConfigureRouter(configuration)
.WithRoutes(forward =>
forward
.RouteAddressToHostedHub<ReferenceDataAddress>(c => c.ConfigureReferenceDataModel())
Expand Down
13 changes: 3 additions & 10 deletions test/MeshWeaver.Import.Test/ImportValidationTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Reactive.Linq;
using System.Reactive.Linq;
using FluentAssertions;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
Expand Down Expand Up @@ -33,14 +31,9 @@ protected override MessageHubConfiguration ConfigureHost(MessageHubConfiguration
);
}

protected override MessageHubConfiguration ConfigureRouter(MessageHubConfiguration conf, Dictionary<string, Type> types)
protected override MessageHubConfiguration ConfigureRouter(MessageHubConfiguration conf)
{
return base.ConfigureRouter(conf, new Dictionary<string, Type>()
{
{ new ClientAddress().Type, typeof(ClientAddress) },
{ new HostAddress().Type, typeof(HostAddress) },
{ new RouterAddress().Type, typeof(RouterAddress) }
}).WithHostedHub(
return base.ConfigureRouter(conf).WithHostedHub(
new TestDomain.ImportAddress(),
config =>
config
Expand Down
13 changes: 3 additions & 10 deletions test/MeshWeaver.Import.Test/SnapshotImportTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq;
using System.Reactive.Linq;
using System.Threading.Tasks;
using FluentAssertions;
Expand Down Expand Up @@ -28,14 +26,9 @@ MessageHubConfiguration configuration
)
);

protected override MessageHubConfiguration ConfigureRouter(MessageHubConfiguration configuration, Dictionary<string, Type> types)
protected override MessageHubConfiguration ConfigureRouter(MessageHubConfiguration configuration)
{
return base.ConfigureRouter(configuration, new Dictionary<string, Type>()
{
{ new ClientAddress().Type, typeof(ClientAddress) },
{ new HostAddress().Type, typeof(HostAddress) },
{ new RouterAddress().Type, typeof(RouterAddress) }
})
return base.ConfigureRouter(configuration)
.WithHostedHub(
new TestDomain.ImportAddress(),
config =>
Expand Down
9 changes: 2 additions & 7 deletions test/MeshWeaver.Northwind.Test/NorthwindTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,9 @@ namespace MeshWeaver.Northwind.Test;
public class NorthwindTest(ITestOutputHelper output) : HubTestBase(output)
{
protected override MessageHubConfiguration ConfigureRouter(
MessageHubConfiguration configuration, Dictionary<string, Type> types)
MessageHubConfiguration configuration)
{
return base.ConfigureRouter(configuration, new Dictionary<string, Type>()
{
{ new ClientAddress().Type, typeof(ClientAddress) },
{ new HostAddress().Type, typeof(HostAddress) },
{ new RouterAddress().Type, typeof(RouterAddress) }
})
return base.ConfigureRouter(configuration)
.WithRoutes(forward =>
forward
.RouteAddressToHostedHub<ReferenceDataAddress>(c =>
Expand Down

0 comments on commit 3c3468e

Please sign in to comment.