public SearchImportNotificationsHandlerTests()
        {
            var applications = GetImportNotifications();
            var assessments  = GetNotificationAssessments();

            var impNotificationContext = new TestImportNotificationContext();
            var iwsContext             = new TestIwsContext();
            var userContext            = A.Fake <IUserContext>();
            var testMapper             = new TestMapper();

            testMapper.AddMapper(new SearchResultMap());

            impNotificationContext.ImportNotifications.AddRange(applications);
            impNotificationContext.Importers.AddRange(GetImporters());
            impNotificationContext.ImportNotificationAssessments.AddRange(assessments);
            iwsContext.InternalUsers.AddRange(GetUsers());
            A.CallTo(() => userContext.UserId).Returns(new Guid("ac795e26-1563-4833-b8f9-0529eb9e66ae"));
            importNotificationSearchRepository = new ImportNotificationSearchRepository(iwsContext, impNotificationContext, userContext);

            handler = new SearchImportNotificationsHandler(importNotificationSearchRepository, testMapper);
        }
 public SearchImportNotificationsHandler(IImportNotificationSearchRepository importNotificationSearchRepository, IMapper mapper)
 {
     this.importNotificationSearchRepository = importNotificationSearchRepository;
     this.mapper = mapper;
 }