File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
test/AbpCompanyName.AbpProjectName.Web.Tests Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change 4
4
using Abp . AspNetCore . TestBase ;
5
5
using Abp . Dependency ;
6
6
using AbpCompanyName . AbpProjectName . EntityFrameworkCore ;
7
- using AbpCompanyName . AbpProjectName . Web . Controllers ;
8
7
using Castle . MicroKernel . Registration ;
9
8
using Microsoft . AspNetCore . Builder ;
10
9
using Microsoft . AspNetCore . Hosting ;
11
- using Microsoft . AspNetCore . Mvc . ApplicationParts ;
12
10
using Microsoft . EntityFrameworkCore ;
13
11
using Microsoft . Extensions . DependencyInjection ;
14
12
using Microsoft . Extensions . Logging ;
@@ -21,18 +19,11 @@ public IServiceProvider ConfigureServices(IServiceCollection services)
21
19
{
22
20
services . AddEntityFrameworkInMemoryDatabase ( ) ;
23
21
24
- var mvc = services . AddMvc ( options =>
22
+ services . AddMvc ( options =>
25
23
{
26
24
options . AddAbp ( services ) ; //Add ABP infrastructure to MVC
27
25
} ) ;
28
26
29
- //Workaround defined here: https://github.com/aspnet/Mvc/issues/4897#issuecomment-228093609
30
- var parts = mvc . PartManager . ApplicationParts ;
31
- parts . Clear ( ) ;
32
- parts . Add ( new AssemblyPart ( typeof ( HomeController ) . Assembly ) ) ;
33
-
34
- mvc . AddControllersAsServices ( ) ;
35
-
36
27
//Configure Abp and Dependency Injection
37
28
return services . AddAbp < AbpProjectNameWebTestModule > ( options =>
38
29
{
You can’t perform that action at this time.
0 commit comments