33using Framework . Application ;
44using Framework . Application . Repository ;
55using Framework . AutomationCore . RootServiceProviderContainer ;
6- using Framework . AutomationCore . ServiceProviderPool ;
76using Framework . BLL . DTOMapping . Domain ;
87using Framework . Configuration . BLL ;
98using Framework . Configuration . Domain ;
1817
1918namespace Framework . AutomationCore ;
2019
21- public abstract class IntegrationTestBase < TBLLContext > ( IServiceProviderPool rootServiceProviderPool )
22- : IntegrationTestBase ( rootServiceProviderPool ) , IRootServiceProviderContainer < TBLLContext >
20+ public abstract class IntegrationTestBase < TBLLContext > ( IServiceProvider rootServiceProvider ) : RootServiceProviderContainer < TBLLContext > ( rootServiceProvider )
2321 where TBLLContext : IServiceProviderContainer
2422{
2523 public Task < TResult > EvaluateAsync < TResult > (
2624 DBSessionMode sessionMode ,
2725 UserCredential ? customUserCredential ,
2826 Func < TBLLContext , Task < TResult > > getResult ) =>
29- this . RootServiceProvider . GetRequiredService < IServiceEvaluator < TBLLContext > > ( ) . EvaluateAsync ( sessionMode , customUserCredential , getResult ) ;
27+ rootServiceProvider . GetRequiredService < IServiceEvaluator < TBLLContext > > ( ) . EvaluateAsync ( sessionMode , customUserCredential , getResult ) ;
3028
3129
3230 protected IConfigurationBLLContext GetConfigurationBLLContext ( TBLLContext context ) => context . ServiceProvider . GetRequiredService < IConfigurationBLLContext > ( ) ;
3331
3432 /// <summary>
3533 /// Отчистка списка нотифицаций
3634 /// </summary>
37- public override void ClearNotifications ( ) =>
35+ public virtual void ClearNotifications ( ) =>
3836 this . EvaluateWrite ( context => this . GetConfigurationBLLContext ( context ) . Logics . DomainObjectNotification . Pipe ( bll => bll . GetFullList ( ) . ForEach ( bll . Remove ) ) ) ;
3937
4038 /// <summary>
@@ -46,12 +44,12 @@ protected virtual List<ObjectModificationInfoDTO<Guid>> GetModifications() =>
4644
4745 this . GetConfigurationBLLContext ( context ) . Logics . DomainObjectModification . GetFullList ( )
4846 . ToList ( mod => new ObjectModificationInfoDTO < Guid >
49- {
50- Identity = mod . DomainObjectId ,
51- ModificationType = mod . Type ,
52- Revision = mod . Revision ,
53- TypeInfoDescription = new TypeInfoDescriptionDTO { Name = mod . DomainType . Name , Namespace = mod . DomainType . Namespace }
54- } ) ) ;
47+ {
48+ Identity = mod . DomainObjectId ,
49+ ModificationType = mod . Type ,
50+ Revision = mod . Revision ,
51+ TypeInfoDescription = new TypeInfoDescriptionDTO { Name = mod . DomainType . Name , Namespace = mod . DomainType . Namespace }
52+ } ) ) ;
5553
5654 /// <summary>
5755 /// Отчистка списка модификаций
@@ -62,7 +60,7 @@ protected virtual void ClearModifications() =>
6260 /// <summary>
6361 /// Отчистка интеграционных евентов
6462 /// </summary>
65- public override void ClearIntegrationEvents ( )
63+ public virtual void ClearIntegrationEvents ( )
6664 {
6765 this . ClearModifications ( ) ;
6866
0 commit comments