Skip to content

Commit 5104282

Browse files
committed
Fixed up the HTTP test suite after recent work
1 parent a630a81 commit 5104282

File tree

6 files changed

+213
-202
lines changed

6 files changed

+213
-202
lines changed

src/Http/Wolverine.Http.Tests/IntegrationContext.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using Microsoft.AspNetCore.Routing;
66
using Microsoft.Extensions.DependencyInjection;
77
using Microsoft.OpenApi.Models;
8-
using JasperFx;
98
using JasperFx.CommandLine;
109
using Shouldly;
1110
using Swashbuckle.AspNetCore.Swagger;
@@ -30,7 +29,7 @@ public async Task InitializeAsync()
3029
// This is bootstrapping the actual application using
3130
// its implied Program.Main() set up
3231
// For non-Alba users, this is using IWebHostBuilder
33-
Host = await AlbaHost.For<Program>(x =>
32+
Host = await AlbaHost.For<WolverineWebApi.Program>(x =>
3433
{
3534
x.ConfigureServices(services =>
3635
{

src/Http/Wolverine.Http.Tests/Internal/Generated/WolverineHandlers/GET_todo_id.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ namespace Internal.Generated.WolverineHandlers
1414
public sealed class GET_todo_id : Wolverine.Http.HttpHandler
1515
{
1616
private readonly Wolverine.Http.WolverineHttpOptions _wolverineHttpOptions;
17-
private readonly Wolverine.Runtime.IWolverineRuntime _wolverineRuntime;
1817
private readonly Wolverine.Marten.Publishing.OutboxedSessionFactory _outboxedSessionFactory;
18+
private readonly Wolverine.Runtime.IWolverineRuntime _wolverineRuntime;
1919

20-
public GET_todo_id(Wolverine.Http.WolverineHttpOptions wolverineHttpOptions, Wolverine.Runtime.IWolverineRuntime wolverineRuntime, Wolverine.Marten.Publishing.OutboxedSessionFactory outboxedSessionFactory) : base(wolverineHttpOptions)
20+
public GET_todo_id(Wolverine.Http.WolverineHttpOptions wolverineHttpOptions, Wolverine.Marten.Publishing.OutboxedSessionFactory outboxedSessionFactory, Wolverine.Runtime.IWolverineRuntime wolverineRuntime) : base(wolverineHttpOptions)
2121
{
2222
_wolverineHttpOptions = wolverineHttpOptions;
23-
_wolverineRuntime = wolverineRuntime;
2423
_outboxedSessionFactory = outboxedSessionFactory;
24+
_wolverineRuntime = wolverineRuntime;
2525
}
2626

2727

src/Http/Wolverine.Http.Tests/Internal/Generated/WolverineHandlers/POST_todo_create.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ namespace Internal.Generated.WolverineHandlers
1414
public sealed class POST_todo_create : Wolverine.Http.HttpHandler
1515
{
1616
private readonly Wolverine.Http.WolverineHttpOptions _wolverineHttpOptions;
17-
private readonly Wolverine.Runtime.IWolverineRuntime _wolverineRuntime;
1817
private readonly Wolverine.Marten.Publishing.OutboxedSessionFactory _outboxedSessionFactory;
18+
private readonly Wolverine.Runtime.IWolverineRuntime _wolverineRuntime;
1919

20-
public POST_todo_create(Wolverine.Http.WolverineHttpOptions wolverineHttpOptions, Wolverine.Runtime.IWolverineRuntime wolverineRuntime, Wolverine.Marten.Publishing.OutboxedSessionFactory outboxedSessionFactory) : base(wolverineHttpOptions)
20+
public POST_todo_create(Wolverine.Http.WolverineHttpOptions wolverineHttpOptions, Wolverine.Marten.Publishing.OutboxedSessionFactory outboxedSessionFactory, Wolverine.Runtime.IWolverineRuntime wolverineRuntime) : base(wolverineHttpOptions)
2121
{
2222
_wolverineHttpOptions = wolverineHttpOptions;
23-
_wolverineRuntime = wolverineRuntime;
2423
_outboxedSessionFactory = outboxedSessionFactory;
24+
_wolverineRuntime = wolverineRuntime;
2525
}
2626

2727

src/Http/Wolverine.Http.Tests/Transport/WolverineHttpTransportClientTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System.Net;
22
using System.Net.Http.Headers;
3+
using JasperFx.Core;
34
using NSubstitute;
45
using Shouldly;
56
using Wolverine.Http.Transport;
@@ -29,6 +30,7 @@ public async Task send_envelope_async()
2930
{
3031
var uri = "https://localhost:5001/messages";
3132
_clientFactory.CreateClient(uri).Returns(_httpClient);
33+
_httpClient.BaseAddress = new Uri("https://localhost:5001/messages");
3234

3335
var envelope = new Envelope
3436
{

src/Http/Wolverine.Http.Tests/bootstrap_with_no_persistence.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public async Task start_up_with_no_persistence()
1313
{
1414
#region sample_bootstrap_with_no_persistence
1515

16-
using var host = await AlbaHost.For<Program>(builder =>
16+
using var host = await AlbaHost.For<WolverineWebApi.Program>(builder =>
1717
{
1818
builder.ConfigureServices(services =>
1919
{

0 commit comments

Comments
 (0)