Exemple #1
0
        public async Task GetQualificationList_HaveSeveral_ReturnAll()
        {
            var service = new AdminQualificationService(dbContext, userManager, roleManager, signInManager);

            await dbContext.Qualification.AddRangeAsync(
                new Qualification("TestQualification1"),
                new Qualification("TestQualification2"),
                new Qualification("TestQualification3"),
                new Qualification("TestQualification4"));

            await dbContext.SaveChangesAsync();

            Assert.AreEqual(4, (await service.GetQualificationsListAsync()).ToList().Count);
        }
Exemple #2
0
        public async Task GetQualificationList_HaveNone_ReturnZero()
        {
            var service = new AdminQualificationService(dbContext, userManager, roleManager, signInManager);

            Assert.AreEqual(0, (await service.GetQualificationsListAsync()).ToList().Count);
        }