Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.

Commit 31d4795

Browse files
committed
Fixed the tests and sample.
1 parent e08f532 commit 31d4795

6 files changed

Lines changed: 27 additions & 19 deletions

File tree

src/EndpointA/EndpointA.csproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,12 @@
1010
<ProjectReference Include="..\Contracts\Contracts.csproj" />
1111
<ProjectReference Include="..\NServiceBus.FileBasedRouting\NServiceBus.FileBasedRouting.csproj" />
1212
</ItemGroup>
13+
<ItemGroup>
14+
<None Update="endpoints.xml">
15+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
16+
</None>
17+
<None Update="instance-mapping.xml">
18+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
19+
</None>
20+
</ItemGroup>
1321
</Project>

src/Tests.Contracts/C.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace NServiceBus.FileBasedRouting.Tests.Contracts
1+
namespace Tests.Contracts
22
{
33
public class C
44
{

src/Tests.Contracts/Commands/A.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace NServiceBus.FileBasedRouting.Tests.Contracts.Commands
1+
namespace Tests.Contracts.Commands
22
{
33
public class A
44
{

src/Tests.Contracts/Commands/B.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace NServiceBus.FileBasedRouting.Tests.Contracts.Commands
1+
namespace Tests.Contracts.Commands
22
{
33
public class B
44
{

src/Tests/EndpointBasedIntegrationTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
using NServiceBus;
66
using NServiceBus.Configuration.AdvancedExtensibility;
77
using NServiceBus.FileBasedRouting;
8-
using NServiceBus.FileBasedRouting.Tests.Contracts.Commands;
98
using NServiceBus.Routing;
109
using NUnit.Framework;
10+
using Tests.Contracts.Commands;
1111

1212
public class EndpointBasedIntegrationTests
1313
{
1414
const string XmlA = @"
1515
<endpoints>
1616
<endpoint name=""EndpointName"">
1717
<handles>
18-
<command type = ""NServiceBus.FileBasedRouting.Tests.Contracts.Commands.A, NServiceBus.FileBasedRouting.Tests.Contracts"" />
18+
<command type = ""Tests.Contracts.Commands.A, Tests.Contracts"" />
1919
</handles>
2020
</endpoint>
2121
</endpoints>
@@ -25,7 +25,7 @@ public class EndpointBasedIntegrationTests
2525
<endpoints>
2626
<endpoint name=""EndpointName"">
2727
<handles>
28-
<command type = ""NServiceBus.FileBasedRouting.Tests.Contracts.Commands.B, NServiceBus.FileBasedRouting.Tests.Contracts"" />
28+
<command type = ""Tests.Contracts.Commands.B, Tests.Contracts"" />
2929
</handles>
3030
</endpoint>
3131
</endpoints>

src/Tests/XmlRoutingFileTests.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
using System.Linq;
2-
using NServiceBus.FileBasedRouting.Tests.Contracts;
3-
using NServiceBus.FileBasedRouting.Tests.Contracts.Commands;
42
using NUnit.Framework;
53
using System.Xml.Linq;
64
using NServiceBus.FileBasedRouting;
5+
using Tests.Contracts;
6+
using Tests.Contracts.Commands;
77

88
public class XmlRoutingFileTests
99
{
@@ -14,8 +14,8 @@ public void It_can_parse_file_with_single_commands()
1414
<endpoints>
1515
<endpoint name=""EndpointName"">
1616
<handles>
17-
<command type = ""NServiceBus.FileBasedRouting.Tests.Contracts.Commands.A, NServiceBus.FileBasedRouting.Tests.Contracts"" />
18-
<command type = ""NServiceBus.FileBasedRouting.Tests.Contracts.Commands.B, NServiceBus.FileBasedRouting.Tests.Contracts"" />
17+
<command type = ""Tests.Contracts.Commands.A, Tests.Contracts"" />
18+
<command type = ""Tests.Contracts.Commands.B, Tests.Contracts"" />
1919
</handles>
2020
</endpoint>
2121
</endpoints>
@@ -36,7 +36,7 @@ public void It_can_parse_file_with_commands_with_assembly_only()
3636
<endpoints>
3737
<endpoint name=""EndpointName"">
3838
<handles>
39-
<commands assembly = ""NServiceBus.FileBasedRouting.Tests.Contracts"" />
39+
<commands assembly = ""Tests.Contracts"" />
4040
</handles>
4141
</endpoint>
4242
</endpoints>
@@ -57,7 +57,7 @@ public void It_can_parse_file_with_commands_with_assembly_and_namespace()
5757
<endpoints>
5858
<endpoint name=""EndpointName"">
5959
<handles>
60-
<commands assembly = ""NServiceBus.FileBasedRouting.Tests.Contracts"" namespace=""NServiceBus.FileBasedRouting.Tests.Contracts.Commands"" />
60+
<commands assembly = ""Tests.Contracts"" namespace=""Tests.Contracts.Commands"" />
6161
</handles>
6262
</endpoint>
6363
</endpoints>
@@ -78,7 +78,7 @@ public void It_can_parse_file_with_commands_with_assembly_and_empty_namespace()
7878
<endpoints>
7979
<endpoint name=""EndpointName"">
8080
<handles>
81-
<commands assembly = ""NServiceBus.FileBasedRouting.Tests.Contracts"" namespace="""" />
81+
<commands assembly = ""Tests.Contracts"" namespace="""" />
8282
</handles>
8383
</endpoint>
8484
</endpoints>
@@ -99,12 +99,12 @@ public void It_provides_distinct_result_even_when_types_are_registered_multiple_
9999
<endpoints>
100100
<endpoint name=""EndpointName"">
101101
<handles>
102-
<command type = ""NServiceBus.FileBasedRouting.Tests.Contracts.Commands.A, NServiceBus.FileBasedRouting.Tests.Contracts"" />
103-
<command type = ""NServiceBus.FileBasedRouting.Tests.Contracts.Commands.A, NServiceBus.FileBasedRouting.Tests.Contracts"" />
104-
<command type = ""NServiceBus.FileBasedRouting.Tests.Contracts.Commands.B, NServiceBus.FileBasedRouting.Tests.Contracts"" />
105-
<command type = ""NServiceBus.FileBasedRouting.Tests.Contracts.Commands.B, NServiceBus.FileBasedRouting.Tests.Contracts"" />
106-
<commands assembly = ""NServiceBus.FileBasedRouting.Tests.Contracts"" namespace=""NServiceBus.FileBasedRouting.Tests.Contracts.Commands"" />
107-
<commands assembly = ""NServiceBus.FileBasedRouting.Tests.Contracts"" namespace=""NServiceBus.FileBasedRouting.Tests.Contracts.Commands"" />
102+
<command type = ""Tests.Contracts.Commands.A, Tests.Contracts"" />
103+
<command type = ""Tests.Contracts.Commands.A, Tests.Contracts"" />
104+
<command type = ""Tests.Contracts.Commands.B, Tests.Contracts"" />
105+
<command type = ""Tests.Contracts.Commands.B, Tests.Contracts"" />
106+
<commands assembly = ""Tests.Contracts"" namespace=""Tests.Contracts.Commands"" />
107+
<commands assembly = ""Tests.Contracts"" namespace=""Tests.Contracts.Commands"" />
108108
</handles>
109109
</endpoint>
110110
</endpoints>

0 commit comments

Comments
 (0)