File tree Expand file tree Collapse file tree 1 file changed +17
-18
lines changed
LinkDotNet.Blog.IntegrationTests Expand file tree Collapse file tree 1 file changed +17
-18
lines changed Original file line number Diff line number Diff line change 4
4
using Microsoft . AspNetCore . Mvc . Testing ;
5
5
using Xunit ;
6
6
7
- namespace LinkDotNet . Blog . IntegrationTests
7
+ namespace LinkDotNet . Blog . IntegrationTests ;
8
+
9
+ public class SmokeTest : IClassFixture < WebApplicationFactory < Program > >
8
10
{
9
- public class SmokeTest : IClassFixture < WebApplicationFactory < Program > >
10
- {
11
- private readonly WebApplicationFactory < Program > factory ;
11
+ private readonly WebApplicationFactory < Program > factory ;
12
12
13
- public SmokeTest ( WebApplicationFactory < Program > factory )
13
+ public SmokeTest ( WebApplicationFactory < Program > factory )
14
+ {
15
+ this . factory = factory . WithWebHostBuilder ( builder =>
14
16
{
15
- this . factory = factory . WithWebHostBuilder ( builder =>
16
- {
17
- builder . UseSetting ( "PersistenceProvider" , "InMemory" ) ;
18
- } ) ;
19
- }
17
+ builder . UseSetting ( "PersistenceProvider" , "InMemory" ) ;
18
+ } ) ;
19
+ }
20
20
21
- [ Fact ]
22
- public async Task ShouldBootUpApplication ( )
23
- {
24
- var client = factory . CreateClient ( ) ;
21
+ [ Fact ]
22
+ public async Task ShouldBootUpApplication ( )
23
+ {
24
+ var client = factory . CreateClient ( ) ;
25
25
26
- var result = await client . GetAsync ( "/" ) ;
26
+ var result = await client . GetAsync ( "/" ) ;
27
27
28
- result . IsSuccessStatusCode . Should ( ) . BeTrue ( ) ;
29
- }
28
+ result . IsSuccessStatusCode . Should ( ) . BeTrue ( ) ;
30
29
}
31
- }
30
+ }
You can’t perform that action at this time.
0 commit comments