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()
1212 {
1313 //Act
1414 var response = await GetResponseAsStringAsync (
15- GetUrl < HomeController > ( nameof ( HomeController . Index ) )
16- ) ;
15+ GetUrl < HomeController > ( nameof ( HomeController . Index ) )
16+ ) ;
1717
1818 //Assert
1919 response . ShouldNotBeNullOrEmpty ( ) ;
Original file line number Diff line number Diff line change 11using System ;
22using Abp . AspNetCore ;
3- using Abp . AspNetCore . Mvc ;
43using Abp . AspNetCore . TestBase ;
54using Abp . Dependency ;
65using AbpCompanyName . AbpProjectName . EntityFrameworkCore ;
@@ -19,10 +18,7 @@ public IServiceProvider ConfigureServices(IServiceCollection services)
1918 {
2019 services . AddEntityFrameworkInMemoryDatabase ( ) ;
2120
22- services . AddMvc ( options =>
23- {
24- options . AddAbp ( services ) ; //Add ABP infrastructure to MVC
25- } ) ;
21+ services . AddMvc ( ) ;
2622
2723 //Configure Abp and Dependency Injection
2824 return services . AddAbp < AbpProjectNameWebTestModule > ( options =>
Original file line number Diff line number Diff line change 44 "testRunner" : " xunit" ,
55
66 "dependencies" : {
7- "Abp.AspNetCore.TestBase" : " 0.10.3" ,
87 "AbpCompanyName.AbpProjectName.Tests" : " 1.0.0.0-*" ,
98 "AbpCompanyName.AbpProjectName.Web" : " 1.0.0-*" ,
109 "Microsoft.AspNetCore.Mvc" : " 1.0.0" ,
11- "AngleSharp" : " 0.9.7"
10+ "AngleSharp" : " 0.9.7" ,
11+ "Abp.AspNetCore.TestBase" : " 0.11.0.2"
1212 },
1313
1414 "frameworks" : {
You can’t perform that action at this time.
0 commit comments