We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3a219c commit 0db4450Copy full SHA for 0db4450
aspnet-core/test/AbpCompanyName.AbpProjectName.Web.Tests/Startup.cs
@@ -78,11 +78,7 @@ private void UseInMemoryDb(IServiceProvider serviceProvider)
78
iocManager.IocContainer
79
.Register(
80
Component.For<DbContextOptions<AbpProjectNameDbContext>>()
81
- .UsingFactoryMethod((kernel, context) =>
82
- {
83
- var qq = 1;
84
- return options;
85
- })
+ .Instance(options)
86
.LifestyleSingleton()
87
);
88
}
0 commit comments