Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "hugan"

Well, here is a sample.

This is the test code,that in UnitOfWorkManager_Tests class of Abp.Tests projoect, at row 16 ~ 21:

LocalIocManager.IocContainer.Register(
                Component.For<IUnitOfWorkDefaultOptions>().ImplementedBy<UnitOfWorkDefaultOptions>().LifestyleSingleton(),
                Component.For<ICurrentUnitOfWorkProvider>().ImplementedBy<CallContextCurrentUnitOfWorkProvider>().LifestyleSingleton(),
                Component.For<IUnitOfWorkManager>().ImplementedBy<UnitOfWorkManager>().LifestyleSingleton(),
                Component.For<IUnitOfWork>().UsingFactoryMethod(() => fakeUow).LifestyleSingleton()
                );

but the UnitOfWorkDefaultOptions and UnitOfWorkManager live in Abp project, and is really internal class, such as :

internal class UnitOfWorkDefaultOptions : IUnitOfWorkDefaultOptions
internal class UnitOfWorkManager : IUnitOfWorkManager, ITransientDependency

May be I miss something?

Hi, I has found that in test project of ABP, test class can access internal class of ABP, that really confused me. I create a test solution bu it didn't work work.

Is there any secret? :?: :?:

Showing 1 to 2 of 2 entries