public override void Given()
        {
            SeedTlevelTestData();
            SeedNotificationTestData();
            CreateMapper();

            _verifyTlevelDetailsModel = new VerifyTlevelDetails
            {
                TqAwardingOrganisationId = _tqAwardingOrganisation.Id,
                PathwayStatusId          = (int)TlevelReviewStatus.Queried,
                Query            = "test",
                QueriedUserEmail = "*****@*****.**"
            };

            _resultsAndCertificationConfiguration = new ResultsAndCertificationConfiguration
            {
                TlevelQueriedSupportEmailAddress = "*****@*****.**"
            };

            _notificationsClient            = Substitute.For <IAsyncNotificationClient>();
            _notificationLogger             = Substitute.For <ILogger <NotificationService> >();
            _notificationTemplateRepository = Substitute.For <ILogger <GenericRepository <NotificationTemplate> > >();
            IRepository <NotificationTemplate> notificationTemplateRepository = new GenericRepository <NotificationTemplate>(_notificationTemplateRepository, DbContext);

            _notificationService = new NotificationService(notificationTemplateRepository, _notificationsClient, _notificationLogger);

            _logger  = Substitute.For <ILogger <IRepository <TqAwardingOrganisation> > >();
            _service = new AwardingOrganisationService(_resultsAndCertificationConfiguration, Repository, _notificationService, _mapper, _logger);
        }
예제 #2
0
        public override void Given()
        {
            SeedTlevelTestData();
            CreateMapper();

            _logger  = Substitute.For <ILogger <IRepository <TqAwardingOrganisation> > >();
            _service = new AwardingOrganisationService(_resultsAndCertificationConfiguration, Repository, null, _mapper, _logger);
        }
예제 #3
0
        public override void Given()
        {
            SeedTlevelTestData();
            CreateMapper();

            _verifyTlevelDetailsModel = new VerifyTlevelDetails
            {
                TqAwardingOrganisationId = 0,
                PathwayStatusId          = (int)TlevelReviewStatus.Confirmed,
                ModifiedBy = "TestUser"
            };

            _logger  = Substitute.For <ILogger <IRepository <TqAwardingOrganisation> > >();
            _service = new AwardingOrganisationService(_resultsAndCertificationConfiguration, Repository, null, _mapper, _logger);
        }