File tree Expand file tree Collapse file tree 3 files changed +5
-9
lines changed
test/AbpCompanyName.AbpProjectName.Web.Tests Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ public async Task Index_Test()
12
12
{
13
13
//Act
14
14
var response = await GetResponseAsStringAsync (
15
- GetUrl < HomeController > ( nameof ( HomeController . Index ) )
16
- ) ;
15
+ GetUrl < HomeController > ( nameof ( HomeController . Index ) )
16
+ ) ;
17
17
18
18
//Assert
19
19
response . ShouldNotBeNullOrEmpty ( ) ;
Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using Abp . AspNetCore ;
3
- using Abp . AspNetCore . Mvc ;
4
3
using Abp . AspNetCore . TestBase ;
5
4
using Abp . Dependency ;
6
5
using AbpCompanyName . AbpProjectName . EntityFrameworkCore ;
@@ -19,10 +18,7 @@ public IServiceProvider ConfigureServices(IServiceCollection services)
19
18
{
20
19
services . AddEntityFrameworkInMemoryDatabase ( ) ;
21
20
22
- services . AddMvc ( options =>
23
- {
24
- options . AddAbp ( services ) ; //Add ABP infrastructure to MVC
25
- } ) ;
21
+ services . AddMvc ( ) ;
26
22
27
23
//Configure Abp and Dependency Injection
28
24
return services . AddAbp < AbpProjectNameWebTestModule > ( options =>
Original file line number Diff line number Diff line change 4
4
"testRunner" : " xunit" ,
5
5
6
6
"dependencies" : {
7
- "Abp.AspNetCore.TestBase" : " 0.10.3" ,
8
7
"AbpCompanyName.AbpProjectName.Tests" : " 1.0.0.0-*" ,
9
8
"AbpCompanyName.AbpProjectName.Web" : " 1.0.0-*" ,
10
9
"Microsoft.AspNetCore.Mvc" : " 1.0.0" ,
11
- "AngleSharp" : " 0.9.7"
10
+ "AngleSharp" : " 0.9.7" ,
11
+ "Abp.AspNetCore.TestBase" : " 0.11.0.2"
12
12
},
13
13
14
14
"frameworks" : {
You can’t perform that action at this time.
0 commit comments