Skip to content

Commit 5effa06

Browse files
authored
Update CustomMiddlewareTests.cs
Add new lines to separate methods
1 parent dedba6e commit 5effa06

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

test/Ocelot.AcceptanceTests/CustomMiddlewareTests.cs

+20-16
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Diagnostics;
4-
using System.Net;
5-
using System.Threading.Tasks;
6-
7-
using Ocelot.Configuration.File;
8-
9-
using Microsoft.AspNetCore.Http;
10-
11-
using Ocelot.Middleware;
12-
13-
using Shouldly;
14-
15-
using TestStack.BDDfy;
16-
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Diagnostics;
4+
using System.Net;
5+
using System.Threading.Tasks;
6+
7+
using Ocelot.Configuration.File;
8+
9+
using Microsoft.AspNetCore.Http;
10+
11+
using Ocelot.Middleware;
12+
13+
using Shouldly;
14+
15+
using TestStack.BDDfy;
16+
1717
using Xunit;
1818

1919
namespace Ocelot.AcceptanceTests
@@ -257,6 +257,7 @@ public void should_call_pre_authorization_middleware()
257257
.And(x => x.ThenTheCounterIs(1))
258258
.BDDfy();
259259
}
260+
260261
[Fact]
261262
public void should_call_after_authorization_middleware()
262263
{
@@ -301,6 +302,7 @@ public void should_call_after_authorization_middleware()
301302
.And(x => x.ThenTheCounterIs(1))
302303
.BDDfy();
303304
}
305+
304306
[Fact]
305307
public void should_call_pre_http_authentication_middleware()
306308
{
@@ -345,6 +347,7 @@ public void should_call_pre_http_authentication_middleware()
345347
.And(x => x.ThenTheCounterIs(1))
346348
.BDDfy();
347349
}
350+
348351
[Fact]
349352
public void should_call_after_http_authentication_middleware()
350353
{
@@ -389,6 +392,7 @@ public void should_call_after_http_authentication_middleware()
389392
.And(x => x.ThenTheCounterIs(1))
390393
.BDDfy();
391394
}
395+
392396
[Fact(Skip = "This is just an example to show how you could hook into Ocelot pipeline with your own middleware. At the moment you must use Response.OnCompleted callback and cannot change the response :( I will see if this can be changed one day!")]
393397
public void should_fix_issue_237()
394398
{

0 commit comments

Comments
 (0)