Ejemplo n.º 1
0
        public void GetTbmisUser()
        {
            IRepositoryContext uow = new EntityFrameworkRepositoryContext();
            var repo   = new TbmisUserRepository(uow);
            var result = repo.GetAll();

            Assert.IsTrue(result.Count() > 0);
        }
Ejemplo n.º 2
0
        public void GetTbmisUserWithRole()
        {
            IRepositoryContext uow = new EntityFrameworkRepositoryContext();
            var repo = new TbmisUserRepository(uow);
            var user = repo.First(t => t.UserName == "46010");

            Assert.IsTrue(user.IsInRole("教师"));
        }
 public void GetTbmisUserWithRole()
 {
     IRepositoryContext uow = new EntityFrameworkRepositoryContext();
     var repo = new TbmisUserRepository(uow);
     var user = repo.First(t => t.UserName == "46010");
     Assert.IsTrue(user.IsInRole("教师"));
 }
 public void GetTbmisUser()
 {
     IRepositoryContext uow = new EntityFrameworkRepositoryContext();
     var repo = new TbmisUserRepository(uow);
     var result = repo.GetAll();
     Assert.IsTrue(result.Count() > 0);
 }