10
10
using GovUk . Education . ExploreEducationStatistics . Common . Utils ;
11
11
using GovUk . Education . ExploreEducationStatistics . Content . Model ;
12
12
using GovUk . Education . ExploreEducationStatistics . Content . Model . Database ;
13
- using GovUk . Education . ExploreEducationStatistics . Content . Model . Repository . Interfaces ;
14
13
using GovUk . Education . ExploreEducationStatistics . Content . Services . Interfaces . Cache ;
15
14
using Moq ;
16
15
using System ;
17
16
using System . Collections . Generic ;
18
17
using System . Threading . Tasks ;
18
+ using GovUk . Education . ExploreEducationStatistics . Admin . Services . Interfaces ;
19
+ using GovUk . Education . ExploreEducationStatistics . Admin . Tests . MockBuilders ;
19
20
using static GovUk . Education . ExploreEducationStatistics . Admin . Tests . Services . DbUtils ;
20
21
using static GovUk . Education . ExploreEducationStatistics . Admin . Tests . Services . MapperUtils ;
21
22
using static GovUk . Education . ExploreEducationStatistics . Common . Tests . Utils . MockUtils ;
22
23
using static Moq . MockBehavior ;
23
24
using IPublicationRepository = GovUk . Education . ExploreEducationStatistics . Admin . Services . Interfaces . IPublicationRepository ;
25
+ using IReleaseVersionRepository = GovUk . Education . ExploreEducationStatistics . Content . Model . Repository . Interfaces . IReleaseVersionRepository ;
24
26
25
27
namespace GovUk . Education . ExploreEducationStatistics . Admin . Tests . Services
26
28
{
@@ -629,7 +631,8 @@ private static PublicationService BuildPublicationService(
629
631
IPublicationCacheService ? publicationCacheService = null ,
630
632
IReleaseCacheService ? releaseCacheService = null ,
631
633
IMethodologyCacheService ? methodologyCacheService = null ,
632
- IRedirectsCacheService ? redirectsCacheService = null )
634
+ IRedirectsCacheService ? redirectsCacheService = null ,
635
+ IAdminEventRaiserService ? adminEventRaiserService = null )
633
636
{
634
637
context ??= Mock . Of < ContentDbContext > ( ) ;
635
638
@@ -644,7 +647,8 @@ private static PublicationService BuildPublicationService(
644
647
publicationCacheService ?? Mock . Of < IPublicationCacheService > ( Strict ) ,
645
648
releaseCacheService ?? Mock . Of < IReleaseCacheService > ( Strict ) ,
646
649
methodologyCacheService ?? Mock . Of < IMethodologyCacheService > ( Strict ) ,
647
- redirectsCacheService ?? Mock . Of < IRedirectsCacheService > ( Strict ) ) ;
650
+ redirectsCacheService ?? Mock . Of < IRedirectsCacheService > ( Strict ) ,
651
+ adminEventRaiserService ?? new AdminEventRaiserServiceMockBuilder ( ) . Build ( ) ) ;
648
652
}
649
653
}
650
654
}
0 commit comments