public void testGet()
        {
            // Arrange
            int count = repo.All().Count();

            this.repo.Add(entity);
            this.repo.SaveChanges();


            // Act
            SchoolClass actual = repo.Get(x => (x.ClassLetter == "ס" && x.ClassNumber == 22)).FirstOrDefault();

            // Assert

            Assert.NotNull(actual);

            this.repo.HardDelete(entity);
            this.repo.SaveChanges();
        }
Пример #2
0
 public Yw_SchoolClass GetSchoolClass(int classId)
 {
     return(SchoolClassRepository.Get(classId));
 }