Skip to content

Commit 98b1119

Browse files
committed
tests: revert for good tests
1 parent d6f763f commit 98b1119

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/JsonApiDotNetCore/Extensions/IServiceCollectionExtensions.cs

+4-6
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@ public static IServiceCollection AddJsonApi<TEfCoreDbContext>(this IServiceColle
3636
if (options != null)
3737
application.ConfigureJsonApiOptions(options);
3838
application.ConfigureLogging();
39+
application.ConfigureMvc();
3940
application.ConfigureResources<TEfCoreDbContext>(resources);
4041
application.ConfigureServices();
41-
application.ConfigureMvc();
42-
4342
return services;
4443
}
4544

@@ -59,13 +58,12 @@ public static IServiceCollection AddJsonApi(this IServiceCollection services,
5958
var application = new JsonApiApplicationBuilder(services, mvcBuilder ?? services.AddMvcCore());
6059
if (options != null)
6160
application.ConfigureJsonApiOptions(options);
62-
if (resources != null)
63-
application.ConfigureResources(resources);
64-
application.ConfigureServices();
6561
application.ConfigureMvc();
6662
if (discovery != null)
6763
application.AutoDiscover(discovery);
68-
64+
if (resources != null)
65+
application.ConfigureResources(resources);
66+
application.ConfigureServices();
6967
return services;
7068
}
7169

0 commit comments

Comments
 (0)