Esempio n. 1
0
        public async Task ShouldGetCertifications()
        {
            var certification = await Testing.DbContextScopeExec(ctx =>
                                                                 ctx.ProfileCertification.FirstOrDefaultAsync(x => x.StaffUniqueId == "1000001322"));

            certification.ShouldNotBeNull();
            certification.CredentialType.ShouldBe("Certification");
            certification.Description.ShouldBe("Mathematics");
            certification.IssuanceDate.ShouldBe(DateTime.Parse("2018-01-19"));
            certification.ExpirationDate.ShouldBe(DateTime.Parse("2024-01-31"));
        }
        public async Task ShouldGetProfileHeader()
        {
            var result = await Testing.DbContextScopeExec(ctx =>
                                                          ctx.ProfileHeader.FirstOrDefaultAsync(x => x.StaffUniqueId == "1000003312"));

            result.FirstName.ShouldBe("Nicola");
            result.LastSurname.ShouldBe("Supple");
            result.MiddleName.ShouldBe("Edward");
            result.Telephone.ShouldBe("713-100-3312");
            result.Email.ShouldBe("*****@*****.**");
        }
        public async Task ShouldGetPositionHistory()
        {
            var positionHistory = await Testing.DbContextScopeExec(ctx =>
                                                                   ctx.ProfilePositionHistory.FirstOrDefaultAsync(x => x.StaffUniqueId == "1000005688"));

            positionHistory.ShouldNotBeNull();
            positionHistory.StaffUsi.ShouldBe(2708);
            positionHistory.Role.ShouldBe("Assistant Principal");
            positionHistory.School.ShouldBe("CARLENS");
            positionHistory.StartDate.ShouldBe(DateTime.Parse("2018-01-15"));
        }
Esempio n. 4
0
        public async Task ShouldGetProfileList()
        {
            var result = await Testing.DbContextScopeExec((ctx) => ctx.ProfileList.FirstOrDefaultAsync(x => x.StaffUsi == 1));

            result.ShouldNotBeNull();
            result.Email.ShouldBe("*****@*****.**");
            result.FirstName.ShouldBe("Patricia");
            result.LastSurName.ShouldBe("Ramirez");
            result.MiddleName.ShouldBeNull();
            result.Location.ShouldBe("Dallas");
            result.StaffUniqueId.ShouldBe("0132398");
        }
 public async Task ShouldGetEducation()
 {
     await Testing.DbContextScopeExec(ctx => ctx.ProfileEducation.AnyAsync());
 }
Esempio n. 6
0
 public async Task ShouldGetProfessionalDevelopment()
 {
     await Testing.DbContextScopeExec(ctx => ctx.StaffProfessionalDevelopments.AnyAsync());
 }