Exemplo n.º 1
0
        public override void Given()
        {
            SeedTestData(EnumAwardingOrganisation.Pearson, true);
            SeedQualificationData();

            var seedUlnQualifications = new List <SeedUlnQualifications>
            {
                new SeedUlnQualifications {
                    Uln = 1111111111, HasSendQualification = false, HasSendGrade = false
                },
                new SeedUlnQualifications {
                    Uln = 1111111112, HasSendQualification = true, HasSendGrade = false
                },
                new SeedUlnQualifications {
                    Uln = 1111111113, HasSendQualification = false, HasSendGrade = true
                },
                new SeedUlnQualifications {
                    Uln = 1111111114, HasSendQualification = true, HasSendGrade = true
                },
            };

            SeedProfileAndQualification(seedUlnQualifications);
            DbContext.SaveChanges();

            // Test class.
            TrainingProviderRepository = new TrainingProviderRepository(DbContext, TraningProviderRepositoryLogger);
        }
Exemplo n.º 2
0
        public async Task WhenAsync(int profileId)
        {
            if (_result != null)
            {
                return;
            }

            _result = await TrainingProviderRepository.IsSendConfirmationRequiredAsync(profileId);
        }